Skip to content

Commit 6218311

Browse files
committed
fix: typescript compilation issues
1 parent 0bb4ef4 commit 6218311

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/cli/src/brownfield/utils/rn-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function getProjectInfo<Platform extends 'ios' | 'android'>(
2222
} {
2323
const projectRoot = findProjectRoot();
2424

25-
const userConfig = cliConfig.default({
25+
const userConfig = cliConfig({
2626
projectRoot,
2727
selectedPlatform: platform,
2828
});

packages/cli/src/brownie/__fixtures__/SecondStore.brownie.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ type SecondStore = {
33
enabled: boolean;
44
};
55

6-
// @ts-expect-error: inexistent module augmentation
76
declare module '@callstack/brownie' {
87
interface BrownieStores {
98
SecondStore: SecondStore;

packages/cli/src/brownie/__fixtures__/TestStore.brownie.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ type TestStore = {
44
isActive: boolean;
55
};
66

7-
// @ts-expect-error: inexistent module augmentation
87
declare module '@callstack/brownie' {
98
interface BrownieStores {
109
TestStore: TestStore;

packages/cli/src/brownie/commands/codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { generateSwift } from '../generators/swift.js';
1515
import { generateKotlin } from '../generators/kotlin.js';
1616
import { discoverStores, type DiscoveredStore } from '../store-discovery.js';
17-
import { Platform } from '../types.js';
17+
import type { Platform } from '../types.js';
1818

1919
function getOutputPath(dir: string, name: string, ext: string): string {
2020
return path.join(dir, `${name}.${ext}`);

0 commit comments

Comments
 (0)