37 lines
463 B
TypeScript
37 lines
463 B
TypeScript
|
|
||
|
import { Foo } from "@test"
|
||
|
|
||
|
type Type = {
|
||
|
foo: number
|
||
|
}
|
||
|
|
||
|
const bar = require("somelib")
|
||
|
|
||
|
const lit_str: string = "Hello"
|
||
|
let lit_num: number = 5.314;
|
||
|
|
||
|
const arrow_proc = async (
|
||
|
arg1: number
|
||
|
): Promise<number> => {
|
||
|
return number
|
||
|
}
|
||
|
|
||
|
function normal_function(arg: string) {
|
||
|
return "Foobar"
|
||
|
}
|
||
|
|
||
|
class MyClass
|
||
|
{
|
||
|
bar: number;
|
||
|
|
||
|
constructor() {
|
||
|
console.log("QQQ!!!")
|
||
|
Foo.some_proc()
|
||
|
normal_function();
|
||
|
|
||
|
const myT: Type;
|
||
|
}
|
||
|
|
||
|
proc() {
|
||
|
}
|
||
|
}
|