Skip to content

Commit 0f8e834

Browse files
committed
chore: fixed the TypeScript error by making the createShareableLink property properly optional.
1 parent 1f7dcce commit 0f8e834

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/yasqe/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ export interface Config extends Partial<CodeMirror.EditorConfiguration> {
19581958
* By default, this feature is enabled, and the only the query value is appended to the link.
19591959
* ps. This function should return an object which is parseable by jQuery.param (http://api.jquery.com/jQuery.param/)
19601960
*/
1961-
createShareableLink: (yasqe: Yasqe) => string;
1961+
createShareableLink: ((yasqe: Yasqe) => string) | undefined | null;
19621962
createShortLink: ((yasqe: Yasqe, longLink: string) => Promise<string>) | undefined;
19631963
consumeShareLink: ((yasqe: Yasqe) => void) | undefined | null;
19641964
/**

0 commit comments

Comments
 (0)