UNPKG

brick-module

Version:

Better React Native native module development

42 lines (38 loc) 1.01 kB
// Brick Module Framework - Core Library // This file provides TypeScript type definitions for the Swift DSL export type { BrickModuleInterface, BrickModuleSpec } from "./BrickModule"; // Main API exports export { default as BrickModule } from "./BrickModule"; export { BrickError } from "./BrickError"; /** * Error types for Brick modules * @deprecated Use BrickError instead */ export class BrickModuleError extends Error { constructor( message: string, public code: string = "BRICK_ERROR", public moduleName?: string, public methodName?: string ) { super(message); this.name = "BrickModuleError"; } } /** * Configuration interface for brick-codegen */ export interface BrickCodegenConfig { outputIos?: string; outputAndroid?: string; cacheDir?: string; incremental?: boolean; watch?: boolean; excludeModules?: string[]; typeCheck?: boolean; verbose?: boolean; newArchOnly?: boolean; oldArchOnly?: boolean; dev?: boolean; } export * from "./types";