(str: string)
| 3 | |
| 4 | export const checkIsGetter = (code: string) => code.match(GETTER); |
| 5 | export const stripGetter = (str: string) => str.replace(GETTER, ''); |
| 6 | |
| 7 | export const replaceGetterWithFunction = (str: string) => str.replace(/^(get )?/, 'function '); |
| 8 | export const replaceFunctionWithGetter = (str: string) => str.replace(/^(function )?/, 'get '); |