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
// A self-contained demonstration of the problem follows...interfaceProps{options: {name: string|boolean}}letv: Propsif(typeofv.options.name==="string"){v.options.name.indexOf("123")}
Expected behavior:
No error
Actual behavior:
Error: Property "indexOf" does not exist on type "string | boolean"
The text was updated successfully, but these errors were encountered:
TypeScript Version:
actual version on http://www.typescriptlang.org/Playground
Code
Expected behavior:
No error
Actual behavior:
Error: Property "indexOf" does not exist on type "string | boolean"
The text was updated successfully, but these errors were encountered: