Skip to content

Instantly share code, notes, and snippets.

@cartant
Last active December 4, 2020 06:10
Show Gist options
  • Save cartant/e87fd5f6c8909b3fd0d02c5813b89deb to your computer and use it in GitHub Desktop.
Save cartant/e87fd5f6c8909b3fd0d02c5813b89deb to your computer and use it in GitHub Desktop.
declare type ReadCallback = (content: string) => string;
declare function read(path: string, callback: ReadCallback): void;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment