конвертировать TypeScript в JS онлайн
export type AppDispatch = typeof store.dispatch;
Open Ox
export type AppDispatch = typeof store.dispatch;
public getValue(): string {
return this.inputNode.value;
}
public get inputNode(): HTMLSelectElement {
return this.node.getElementsByTagName("select")[1];
}
}
class Transaction {
public id: string;
public txIns: TxIn[];
public txOuts: TxOut[];
}
1. Add tsconfig.json file to project
2. Integrate with a build tool
3. Change all .js files to .ts files
4. Check for any errors