diff --git a/scripts/codegen.ts b/scripts/codegen.ts index 6c160d01..2c16cf88 100644 --- a/scripts/codegen.ts +++ b/scripts/codegen.ts @@ -40,8 +40,8 @@ const TEMPLATE_MAPPINGS = [ output: path.join(IOS_OUTPUT_PATH, "MLRNStyle.h"), }, { - input: path.join(TEMPLATES_PATH, "MapLibreRNStyles.d.ts.ejs"), - output: path.join(JS_OUTPUT_PATH, "types", "MapLibreRNStyles.d.ts"), + input: path.join(TEMPLATES_PATH, "MapLibreRNStyles.ts.ejs"), + output: path.join(JS_OUTPUT_PATH, "types", "MapLibreRNStyles.ts"), }, { input: path.join(TEMPLATES_PATH, "MLRNStyle.m.ejs"), diff --git a/scripts/templates/MapLibreRNStyles.d.ts.ejs b/scripts/templates/MapLibreRNStyles.ts.ejs similarity index 99% rename from scripts/templates/MapLibreRNStyles.d.ts.ejs rename to scripts/templates/MapLibreRNStyles.ts.ejs index 7892eead..c4cabeed 100644 --- a/scripts/templates/MapLibreRNStyles.d.ts.ejs +++ b/scripts/templates/MapLibreRNStyles.ts.ejs @@ -56,6 +56,7 @@ type ExpressionParameters = 'zoom' | 'feature' | 'feature-state' | 'sky-radial-p type ResolvedImageType = ImageSourcePropType | string; +// @ts-ignore // eslint-disable-next-line @typescript-eslint/no-unused-vars export type Value = | T diff --git a/src/types/MapLibreRNStyles.d.ts b/src/types/MapLibreRNStyles.ts similarity index 99% rename from src/types/MapLibreRNStyles.d.ts rename to src/types/MapLibreRNStyles.ts index 2fd50179..f088c04d 100644 --- a/src/types/MapLibreRNStyles.d.ts +++ b/src/types/MapLibreRNStyles.ts @@ -1,5 +1,5 @@ // DO NOT MODIFY -// This file is auto-generated from scripts/templates/MapLibreRNStyles.d.ts.ejs +// This file is auto-generated from scripts/templates/MapLibreRNStyles.ts.ejs import { type ImageSourcePropType } from "react-native"; @@ -129,6 +129,7 @@ type ExpressionParameters = type ResolvedImageType = ImageSourcePropType | string; +// @ts-ignore // eslint-disable-next-line @typescript-eslint/no-unused-vars export type Value = | T