Created
March 23, 2022 02:53
-
-
Save jtlapp/f30e9db5298db9639d57eda53217efad to your computer and use it in GitHub Desktop.
Demo MainApi1 with type checking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class MainApi1 implements ElectronMainApi<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