Skip to content

Instantly share code, notes, and snippets.

@jtlapp
Last active March 23, 2022 02:09
Show Gist options
  • Save jtlapp/f4f50c6b8602e197d5abcda14b8f64a8 to your computer and use it in GitHub Desktop.
Save jtlapp/f4f50c6b8602e197d5abcda14b8f64a8 to your computer and use it in GitHub Desktop.
Example main API without type checking
export class MainApi1 {
methodA(arg1: string, arg2: number): Promise<void> {
// code for methodA
}
methodB(): Promise<number> {
// code for methodB
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment