UNPKG

nitro-codegen

Version:

The code-generator for react-native-nitro-modules.

14 lines (13 loc) 809 B
import type { SourceFile } from './SourceFile.js'; import type { Type } from './types/Type.js'; type Comment = '///' | '#'; export declare function createFileMetadataString(filename: string, comment?: Comment): string; export declare function isFunction(type: Type): boolean; export declare function toReferenceType(type: string): `const ${typeof type}&`; export declare function escapeCppName(string: string): string; export declare function isBooleanPropertyPrefix(name: string): boolean; export declare function isNotDuplicate<T>(item: T, index: number, array: T[]): boolean; export declare function isCppFile(file: SourceFile): boolean; export declare function getRelativeDirectory(file: SourceFile): string; export declare function getRelativeDirectoryGenerated(...subpath: string[]): string; export {};