Created
November 22, 2021 13:05
-
-
Save sebastinez/2c9c08e7ccca070d9acabc883e000364 to your computer and use it in GitHub Desktop.
tsc errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/WalletConnectSigner.ts:36:82 - error TS2345: Argument of type '(name: string) => Promise<string | null>' is not assignable to parameter of type '(name: string) => Promise<string>'. | |
Type 'Promise<string | null>' is not assignable to type 'Promise<string>'. | |
Type 'string | null' is not assignable to type 'string'. | |
Type 'null' is not assignable to type 'string'. | |
36 const populated = await _TypedDataEncoder.resolveNames(domain, types, value, (name: string) => { | |
~~~~~~~~~~~~~~~~~~~ | |
src/base/registrations/registrar.ts:71:5 - error TS2322: Type 'Resolver | null' is not assignable to type 'EnsResolver | undefined'. | |
Type 'null' is not assignable to type 'EnsResolver | undefined'. | |
71 resolver = await config.provider.getResolver(name); | |
~~~~~~~~ | |
src/base/registrations/registrar.ts:98:7 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
Type 'null' is not assignable to type 'string | undefined'. | |
98 url, | |
~~~ | |
src/base/registrations/registrar.ts:30:3 | |
30 url?: string; | |
~~~ | |
The expected type comes from property 'url' which is declared here on type 'EnsProfile' | |
src/base/registrations/registrar.ts:99:7 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
99 avatar, | |
~~~~~~ | |
src/base/registrations/registrar.ts:31:3 | |
31 avatar?: string; | |
~~~~~~ | |
The expected type comes from property 'avatar' which is declared here on type 'EnsProfile' | |
src/base/registrations/registrar.ts:101:9 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
101 id: seedId, | |
~~ | |
src/base/registrations/registrar.ts:19:3 | |
19 id?: string; | |
~~ | |
The expected type comes from property 'id' which is declared here on type 'Seed' | |
src/base/registrations/registrar.ts:102:9 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
102 host: seedHost, | |
~~~~ | |
src/base/registrations/registrar.ts:18:3 | |
18 host?: string; | |
~~~~ | |
The expected type comes from property 'host' which is declared here on type 'Seed' | |
src/base/registrations/registrar.ts:103:9 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
103 git: seedGit, | |
~~~ | |
src/base/registrations/registrar.ts:20:3 | |
20 git?: string; | |
~~~ | |
The expected type comes from property 'git' which is declared here on type 'Seed' | |
src/base/registrations/registrar.ts:104:9 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
104 api: seedApi, | |
~~~ | |
src/base/registrations/registrar.ts:21:3 | |
21 api?: string; | |
~~~ | |
The expected type comes from property 'api' which is declared here on type 'Seed' | |
src/base/registrations/registrar.ts:106:7 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
106 anchorsAccount, | |
~~~~~~~~~~~~~~ | |
src/base/registrations/registrar.ts:29:3 | |
29 anchorsAccount?: string; | |
~~~~~~~~~~~~~~ | |
The expected type comes from property 'anchorsAccount' which is declared here on type 'EnsProfile' | |
src/base/registrations/registrar.ts:107:7 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
107 address, | |
~~~~~~~ | |
src/base/registrations/registrar.ts:27:3 | |
27 address?: string; | |
~~~~~~~ | |
The expected type comes from property 'address' which is declared here on type 'EnsProfile' | |
src/base/registrations/registrar.ts:108:7 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
108 twitter, | |
~~~~~~~ | |
src/base/registrations/registrar.ts:32:3 | |
32 twitter?: string; | |
~~~~~~~ | |
The expected type comes from property 'twitter' which is declared here on type 'EnsProfile' | |
src/base/registrations/registrar.ts:109:7 - error TS2322: Type 'string | null | undefined' is not assignable to type 'string | undefined'. | |
109 github, | |
~~~~~~ | |
src/base/registrations/registrar.ts:33:3 | |
33 github?: string; | |
~~~~~~ | |
The expected type comes from property 'github' which is declared here on type 'EnsProfile' | |
src/base/registrations/registrar.ts:117:3 - error TS2322: Type 'EnsResolver | null' is not assignable to type 'EnsResolver | undefined'. | |
Type 'null' is not assignable to type 'EnsResolver | undefined'. | |
117 resolver = resolver ?? await config.provider.getResolver(name); | |
~~~~~~~~ | |
src/base/registrations/registrar.ts:121:3 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'. | |
Type 'null' is not assignable to type 'string | undefined'. | |
121 return resolver.getText('avatar'); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/base/registrations/registrar.ts:127:3 - error TS2322: Type 'EnsResolver | null' is not assignable to type 'EnsResolver | undefined'. | |
127 resolver = resolver ?? await config.provider.getResolver(name); | |
~~~~~~~~ | |
src/base/registrations/registrar.ts:131:3 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'. | |
131 return resolver.getText('eth.radicle.anchors'); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/base/registrations/registrar.ts:135:3 - error TS2322: Type 'EnsResolver | null' is not assignable to type 'EnsResolver | undefined'. | |
135 resolver = resolver ?? await config.provider.getResolver(name); | |
~~~~~~~~ | |
src/base/registrations/registrar.ts:147:12 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'. | |
147 return { id, host, git, api }; | |
~~ | |
src/base/registrations/registrar.ts:147:16 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'. | |
147 return { id, host, git, api }; | |
~~~~ | |
src/base/registrations/registrar.ts:147:22 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'. | |
147 return { id, host, git, api }; | |
~~~ | |
src/base/registrations/registrar.ts:147:27 - error TS2322: Type 'string | null' is not assignable to type 'string | undefined'. | |
147 return { id, host, git, api }; | |
~~~ | |
[2:05:09 PM] Found 21 errors. Watching for file changes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment