(enumType: T, input: string)
| 132 | } |
| 133 | |
| 134 | export function isValidEnum<T extends Record<string, string>>(enumType: T, input: string): input is T[keyof T] { |
| 135 | return Object.values(enumType).includes(input); |
| 136 | } |
| 137 | |
| 138 | export function findReplace(manifest: string, replacer: RegExp, value: string): string { |
| 139 | return manifest.replace(replacer, value); |