17 Commits

Author SHA1 Message Date
Sharlon Balbalosa
9433e5ca06
fix: change type to string instead of literal newPassword (#1309) 2023-03-13 00:00:21 -07:00
Dimitris Apostolou
9e616ea3a9
Fix typos (#1299) 2023-02-25 17:09:54 -08:00
Orimay
d53d157f19
New GUN typings (#1205)
* New GUN typings

* Fixing comments

* Gun schema is now supported

Co-authored-by: dbaranov <dbaranov@bellintegrator.com>
2022-02-18 23:17:41 -08:00
MaciejDot
395c2b8f98
partly repair gun types (#1154)
* partly repair gun types

* added types tests
2021-10-29 23:15:02 -07:00
Gál Péter
c97ac0002c
Fix: type error shown when using generated keypair (#1131)
* fix errors shown when trying to use correct keypairs

* mark only (really) used parameters as required

- a callback is optional, because we could just use the async/await methodology to recieve the keypair
- when signing only `priv` is used
- when verifying only `pub` is used
- both when encrypting/decrypting only `epriv` is used
2021-09-11 10:02:08 -07:00
chance
da573640b3
Fixes a few typos and small grammatical errors in the type definitions located at types/chain.d.ts (#1106)
* Adds a note about deploying web apps where an environment variable should be changed to avoid GUN warnings being treated as errors during CI

* Fixes a few typos and small grammatical errors in the type definitions types/chain.d.ts
2021-08-05 20:28:35 -07:00
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
Bernie Telles
70eb769209
Add TypeScript test file & tsd as devDep to run it (#1091)
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.
2021-07-27 13:02:47 -07:00
Egi Hasdi
fdedf8e59d
[type definition] use keypair for user.auth (#1085) 2021-06-30 17:27:49 -07:00
nsreed
2168e3e2d7
add options argument to set/put method signatures (#1067)
* chain.d.ts: add options argument to put & set

* chain.d.ts: set cb may be null when providing opts

Co-authored-by: Norman Reed <norman.s.reed@gmail.com>
2021-04-11 22:58:38 -07:00
rayros
cba32c1040 remove ts-type import 2020-03-29 20:45:57 +02:00
bluelovers
c59e0e95f9 fix: type CryptoKeyPair and rename to IGunCryptoKeyPair 2020-02-06 21:41:12 +08:00
bluelovers
273f7fce8d chore: update type Gun.log 2020-02-06 21:41:11 +08:00
bluelovers
4a42a4f1ce refactor: split types node , SEA 2020-02-05 09:24:50 +08:00
bluelovers
4d252a96f7 fix: types chain.then 2020-02-05 09:02:32 +08:00
bluelovers
c93149a3a0 refactor: update types for better extendable 2020-02-05 08:37:00 +08:00
bluelovers
248e09c573 split @types/gun 2020-02-05 08:06:20 +08:00