(x: unknown)
| 258 | } |
| 259 | |
| 260 | function asString(x: unknown): string { |
| 261 | if (typeof x === 'string') { |
| 262 | return x; |
| 263 | } |
| 264 | throw new Error('String expected, but got ' + typeof x); |
| 265 | } |
| 266 | |
| 267 | function asBytestring(x: unknown): Uint8Array { |
| 268 | if (x instanceof Uint8Array) { |
no outgoing calls
no test coverage detected