Skip to content

Commit 783f90d

Browse files
committed
feat(core): export IConfigPlatform for plugin config augmentation
Export `IConfigPlatform` alongside `NativeScriptConfig` from `config.interface.ts` and `index.d.ts` so external CLI plugins (such as `@nstudio/nativescript-compiler`) can cleanly augment `NativeScriptConfig` and per-platform `ios`/`android` config via TypeScript module augmentation without adding plugin-specific options to core. Types only.
1 parent 5c5da05 commit 783f90d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/core/config/config.interface.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { InstrumentationMode } from '../profiling';
22

3-
interface IConfigPlatform {
3+
export interface IConfigPlatform {
44
/**
55
* App's bundle id
66
*/

‎packages/core/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* the reference path above will get rewritten and break on compilation unless kept here
77
* Once issue is resolve we can remove this index.d.ts from repo and go back to auto generation on tsc
88
*/
9-
export type { NativeScriptConfig } from './config';
9+
export type { NativeScriptConfig, IConfigPlatform } from './config';
1010

1111
export * from './application';
1212
export { androidRegisterBroadcastReceiver, androidUnregisterBroadcastReceiver, androidRegisteredReceivers, iosAddNotificationObserver, iosRemoveNotificationObserver, iosNotificationObservers } from './application/helpers';

0 commit comments

Comments
 (0)