From 63e8dc93cfb8f5ededdfd6ad92108137db73838f Mon Sep 17 00:00:00 2001 From: Kilian Finger Date: Sun, 15 Dec 2024 16:19:51 +0100 Subject: [PATCH] fix: drop .d on MapLibreRNStyles.ts --- scripts/codegen.ts | 4 ++-- .../{MapLibreRNStyles.d.ts.ejs => MapLibreRNStyles.ts.ejs} | 1 + src/types/{MapLibreRNStyles.d.ts => MapLibreRNStyles.ts} | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) rename scripts/templates/{MapLibreRNStyles.d.ts.ejs => MapLibreRNStyles.ts.ejs} (99%) rename src/types/{MapLibreRNStyles.d.ts => MapLibreRNStyles.ts} (99%) 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