gun/tsconfig.json
Bernie Telles 5d5432a9b5
Fix set/get parameters to use Record<string,*>. (#1094)
* Add TypeScript test file & tsd as devDep to run it

This helps those who want to contribute to the TypeScript definitions
by adding:
 * a tool called `tsd,`
 * its corresponding configuration in package.json
 * a teste file index.test-d.ts

Also add a extra line between type definitions to improve readability.

* Fix set/get parameters to use Record<string,*>.

The previous implementation did not allow users to
retrieve items that were inserted using "set," and
it incorrectly used ArrayOf to extract record types.

The previous implementation also prevented users
from ever inserting an array. Although it the database
does not handle arrays elegantly, it allows the user
to insert them. Typing should not prohibit use of
arrays.
2021-07-30 00:20:32 -07:00

18 lines
457 B
JSON

{
"compilerOptions": {
"emitDeclarationOnly": true,
"declaration": true,
},
"include": [
// only compile the type definitions by default.
// That is, ignore the files in 'examples/**'
"types/**.d.ts"
],
"exclude": [
// Among the type definitions, don't try to compile
// the test file which implements bad types.
// It implements bad types for testing purposes.
"types/index.test-d.ts"
]
}