-
Notifications
You must be signed in to change notification settings - Fork 303
Closed
Labels
compiler:coreIssues for @typespec/compilerIssues for @typespec/compilerfeatureNew feature or requestNew feature or requesttriaged:core
Milestone
Description
Currently - many of the typekit is
APIs are too restrictive in what they accept. For example, $.value.is
realistically only accepts a Value
type:
is(type: { valueKind: string }): type is Value; |
This makes it really hard to use these APIs with other methods that return Type | Value
or Entity
to narrow the types.
I think in general we should encourage that is*
APIs support passing in either Entity
or unknown
.
Metadata
Metadata
Assignees
Labels
compiler:coreIssues for @typespec/compilerIssues for @typespec/compilerfeatureNew feature or requestNew feature or requesttriaged:core