Skip to content

Commit f1bb8b3

Browse files
committed
Fix typing
1 parent 0c0e981 commit f1bb8b3

File tree

2 files changed

+6
-1
lines changed
  • packages

2 files changed

+6
-1
lines changed

packages/app/src/sandbox/eval/presets/create-react-app/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Manager from 'sandbox/eval/manager';
55
export async function isMinimalReactVersion(
66
version: string,
77
minimalVersion: string
8-
) {
8+
): Promise<boolean> {
99
if (version) {
1010
const absoluteDependencies = await getAbsoluteDependencies({
1111
'react-dom': version,

packages/common/src/types/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,11 @@ export type PackageJSON = {
434434
description?: string;
435435
keywords?: string[];
436436
main?: string;
437+
tasks?: {
438+
scripts?: {
439+
[command: string]: string;
440+
};
441+
};
437442
dependencies?: {
438443
[dep: string]: string;
439444
};

0 commit comments

Comments
 (0)