Closed MasatoDev closed 1 month ago
pub enum TSSignature<'a> { TSIndexSignature(Box<'a, TSIndexSignature<'a>>), TSPropertySignature(Box<'a, TSPropertySignature<'a>>), TSCallSignatureDeclaration(Box<'a, TSCallSignatureDeclaration<'a>>), TSConstructSignatureDeclaration(Box<'a, TSConstructSignatureDeclaration<'a>>), TSMethodSignature(Box<'a, TSMethodSignature<'a>>), }
this signature is already supported.
type Person = { name: string; age: number; }; const person: Person = { name: "hoge", age: 30 };
type StringDictionary = { [index: string]: string }; const myDict: StringDictionary = { name: "hoge", };
https://github.com/MasatoDev/boostest/pull/23
type MyFunc = (name: string, age: number) => string; const greet: MyFunc = (name, age) => `Hello, ${name}! You are ${age} years old.`;
Basic Call Signature cases have been handled in the following PR. https://github.com/MasatoDev/boostest/pull/24
new (parameter1: Type1, parameter2: Type2, ...) => InstanceType;
methodName(parameter1: Type1, parameter2: Type2, ...): ReturnType;
Basic TSMethod Signature cases have been handled in the following PR. https://github.com/MasatoDev/boostest/pull/24
Supported items are displayed in tabular form. Almost all listed items are supported without TSConstructSignatureDeclaration.
✅TSPropertySignature
this signature is already supported.
✅TSIndexSignature
https://github.com/MasatoDev/boostest/pull/23
☑️TSCallSignatureDeclaration
Basic Call Signature cases have been handled in the following PR. https://github.com/MasatoDev/boostest/pull/24
TSConstructSignatureDeclaration
☑️TSMethodSignature
Basic TSMethod Signature cases have been handled in the following PR. https://github.com/MasatoDev/boostest/pull/24