Last active
October 20, 2019 12:48
-
-
Save nicu-chiciuc/fd3b7545f60cdda6a538ef3250532414 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
const getStringLength = new ValidatedMethod({ | |
name: "global.getStringLength", | |
validate: null, | |
run(str: string) { | |
return Promise.resolve(str.length); | |
} | |
}); | |
export { getStringLength }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment