nitro-codegen
Version:
The code-generator for react-native-nitro-modules.
15 lines (14 loc) • 991 B
TypeScript
import type { SourceFile } from './syntax/SourceFile.js';
import type { SwiftCxxHelper } from './syntax/swift/SwiftCxxTypeHelper.js';
import type { Type } from 'ts-morph';
export declare function capitalizeName(name: string): string;
export declare function createIndentation(spacesCount: number): string;
export declare function indent(string: string, spacesCount: number): string;
export declare function indent(string: string, indentation: string): string;
export declare function errorToString(error: unknown): string;
export declare function escapeComments(string: string): string;
export declare function toUnixPath(p: string): string;
export declare function filterDuplicateFiles(f: SourceFile, i: number, array: SourceFile[]): boolean;
export declare function filterDuplicateHelperBridges(bridge: SwiftCxxHelper, i: number, array: SwiftCxxHelper[]): boolean;
export declare function toLowerCamelCase(string: string): string;
export declare function getBaseTypes(type: Type): Type[];