Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
type annotations can only be used in typescript files.ts(8010)
Lindsay
Programming language:
TypeScript
2021-02-23 09:31:55
0
Q:
type annotations can only be used in typescript files.ts(8010)
Newar
Code:
TypeScript
2021-02-23 09:41:21
// @ts-check module.exports = { someMethod: (param: string): string => { return param; }, };
1
Tags
use
file
files
type
types
script
Related
use type as value typescript
typescript not supporting scss
typescript annotate return type
how to run typescript file
typescript function type
typescript class type t
typescript extension getter
eslint no-unused-vars typescript interface
eslint no-unused-vars typescript
custom types in typescript
how to compile ts in cmd
typescript check type of variable
typescript check type
cannot find module 'typescript' angular 9
alternative for .include in typescript
classes in typescript
Cannot find module 'typescript'
New to Communities?
Join the community