Created
December 13, 2022 10:49
-
-
Save loderunner/503986cf3e68364bcc9197670b0e3348 to your computer and use it in GitHub Desktop.
This file contains 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 Client { | |
doTheThing(message: string, count: number): boolean { /* ... */ } | |
} |
This file contains 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
declare function doTheThing(message: string, count: number): boolean |
This file contains 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 function doTheThing(...args Parameters<Client['doTheThing']>): ReturnType<Client['doTheThing']> { | |
const client = new Client(defaultClientOptions) | |
return client.doTheThing(...args) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment