(nameOrURL: string)
| 4 | |
| 5 | |
| 6 | const toURL = (nameOrURL: string): string => nameOrURL.startsWith('http') |
| 7 | ? nameOrURL |
| 8 | : `https://developer.smartthings.com/docs/api/public/#operation/${nameOrURL}` |
| 9 | |
| 10 | export const apiDocsURL = (names: string | string[]): string => 'For API information, see:\n ' + |
| 11 | (typeof names === 'string' ? [names] : names).map(name => toURL(name)).join('\n ') |
no outgoing calls
no test coverage detected