Created
July 14, 2022 23:15
-
-
Save djom202/8acf8159647b78b90dd4772c7efd71de to your computer and use it in GitHub Desktop.
Paths to the endpoints
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
import { v4 as uuidv4 } from 'uuid' | |
export namespace Helpers { | |
export function randomUUID() { | |
return uuidv4() | |
} | |
} |
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
import { Tools } from './tools' | |
// Tools.Helpers.randomUUID() | |
// Tools.Urls.base() |
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
import * as Helpers from './helpers' | |
import * as Urls from './urls' | |
export namespace Tools { | |
export namespace Helpers | |
export namespace Urls | |
} |
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 namespace Urls { | |
export function base(): string { return this._baseUrl } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment