@appsemble/lang-sdk
Version:
Language SDK for Appsemble
24 lines (23 loc) • 682 B
TypeScript
/**
* A minimalist implementation to convert camel case strings to hyphenated ones.
*
* @param string The camel case input.
* @returns The input, but hyphenated.
*/
export declare function camelToHyphen(string: string): string;
/**
* Convert a string to upper case.
*
* @param input The string to convert to upper case.
* @returns The input, but upper case.
*/
export declare function toUpperCase(input: string): string;
/**
* Escape a JSON reference.
*
* See https://tools.ietf.org/html/rfc6901#section-3
*
* @param ref The JSON pointer segment to escape.
* @returns The escaped JSON pointer segment.
*/
export declare function decodeJSONRef(ref: string): string;