You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{isString,isNubmer}from"util";functionCase(name?: string,symbol?: string,decimals?: number): name is string=>{returnisString(name)&&isString(symbol)&&isNumber(decimals);};
not only name is string but symbol is string && decimals is nubmer
Checklist
My suggestion meets these guidelines:
This wouldn't be a breaking change in existing TypeScript / JavaScript code
This wouldn't change the runtime behavior of existing JavaScript code
This could be implemented without emitting different JS based on the types of the expressions
This isn't a runtime feature (e.g. new expression-level syntax)
The text was updated successfully, but these errors were encountered:
Search Terms
Suggestion
Use Cases
Examples
not only
name is string
butsymbol is string
&&decimals is nubmer
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: