MCPcopy
hub / github.com/BuilderIO/mitosis / stripGetter

Function stripGetter

packages/core/src/helpers/patterns.ts:5–5  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

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

Callers 1

componentToSwiftFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected