UNPKG

nitro-codegen

Version:

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

17 lines (16 loc) 655 B
import type { Language } from '../../getPlatformSpecs.js'; import { type SourceFile, type SourceImport } from '../SourceFile.js'; import { FunctionType } from './FunctionType.js'; import type { Type, TypeKind } from './Type.js'; export declare class PromiseType implements Type { readonly resultingType: Type; readonly errorType: Type; constructor(resultingType: Type); get canBePassedByReference(): boolean; get kind(): TypeKind; get resolverFunction(): FunctionType; get rejecterFunction(): FunctionType; getCode(language: Language): string; getExtraFiles(): SourceFile[]; getRequiredImports(): SourceImport[]; }