(license: string)
| 63 | }; |
| 64 | |
| 65 | export const licenseShort = (license: string): string | undefined => |
| 66 | licenseMap[license.toLowerCase() as keyof typeof licenseMap]; |
| 67 | |
| 68 | // `assertNever` will result in a type error at compile time, or an exception at runtime, |
| 69 | // if the passed in value is not of type `never`. Useful for exhaustiveness checking. |