Skip to content

Commit 23c99b9

Browse files
MajorLifterwolff
andcommitted
Apply suggested correction to jsdoc
Co-authored-by: Eric Wolff <[email protected]>
1 parent b9cfb7b commit 23c99b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/caip-types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ export enum KnownCaipNamespace {
143143
}
144144

145145
/**
146-
* A CAIP chain ID namespaced by a known CAIP namespace (@see {@link KnownCaipNamespace}).
147-
* This is a narrower alternative to {@link CaipChainId}.
146+
* A CAIP-2 chain ID that is guaranteed to have a known CAIP namespace
147+
* (@see {@link KnownCaipNamespace}).
148148
*
149-
* This type is necessary because `const` strings are not assignable to the `string` type.
150-
* Because of this, e.g. `eip155:${string}` is not assignable to (is not a subtype of) `${string}:${string}`.
149+
* This is a narrower, more type-safe alternative to {@link CaipChainId} for use cases
150+
* where the chain namespace must be one of the known standards.
151151
*/
152152
export type KnownCaipNamespacedChainId = `${KnownCaipNamespace}:${string}`;
153153

0 commit comments

Comments
 (0)