Skip to content

Commit bef9972

Browse files
chore(deps): update dependency typescript to v5.7.2 (#2351)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tommy Nguyen <[email protected]>
1 parent b5e3853 commit bef9972

File tree

13 files changed

+98
-119
lines changed

13 files changed

+98
-119
lines changed

plugins/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// @ts-check
22
const { withMod } = require("@expo/config-plugins");
33

4-
/**
5-
* @typedef {import("@expo/config-plugins").ExportedConfig} ExportedConfig
6-
* @typedef {import("@expo/config-plugins").Mod} Mod
7-
*/
4+
/** @import { ExportedConfig, Mod } from "@expo/config-plugins"; */
85

96
/**
107
* Provides the `ReactNativeHost` file for modification.

plugins/macos.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
const { withMod } = require("@expo/config-plugins");
33

44
/**
5-
* @typedef {import("@expo/config-plugins").ExportedConfig} ExportedConfig
6-
* @typedef {import("@expo/config-plugins").ExportedConfigWithProps} ExportedConfigWithProps
7-
* @typedef {import("@expo/config-plugins").Mod} Mod
8-
* @typedef {import("@expo/config-plugins").ModConfig} ModConfig
5+
* @import {
6+
* ExportedConfig,
7+
* ExportedConfigWithProps,
8+
* Mod,
9+
* ModConfig,
10+
* } from "@expo/config-plugins";
911
* @typedef {ExportedConfigWithProps & { macos?: { infoPlist?: Record<string, unknown> }}} ExportedConfigWithPropsMac
1012
*/
1113

scripts/config-plugins/plugins/withInternal.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// @ts-check
22
/**
3-
* @typedef {import("../types.js").ProjectInfo} ProjectInfo
3+
* @import { ConfigPlugin } from "@expo/config-plugins";
4+
* @import { ProjectInfo } from "../types.js";
45
* @typedef {Omit<ProjectInfo, "appJsonPath">} Internals
56
*/
6-
/**
7-
* @template Props
8-
* @typedef {import("@expo/config-plugins").ConfigPlugin<Internals>} ConfigPlugin
9-
*/
107

118
/** @type {ConfigPlugin<Internals>} */
129
export const withInternal = (config, internals) => {

scripts/configure-projects.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ const {
1919
v,
2020
} = require("./helpers");
2121

22-
/**
23-
* @typedef {import("./types.js").ProjectConfig} ProjectConfig
24-
* @typedef {import("./types.js").ProjectParams} ProjectParams
25-
*/
22+
/** @import { ProjectConfig, ProjectParams } from "./types.js"; */
2623

2724
/**
2825
* Returns the version number of a React Native dependency.

scripts/internal/generate-manifest.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { URL, fileURLToPath } from "node:url";
55
import { generateSchema } from "../schema.mjs";
66

77
/**
8-
* @typedef {import("ajv").SchemaObject} SchemaObject
9-
* @typedef {import("../types.js").Language} Language
8+
* @import { SchemaObject } from "ajv";
9+
* @import { Language } from "../types.js";
1010
*/
1111
const thisScript = fileURLToPath(import.meta.url);
1212

scripts/internal/generate-schema.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { URL, fileURLToPath } from "node:url";
66
import { isMain } from "../helpers.js";
77
import { generateSchema } from "../schema.mjs";
88

9-
/** @typedef {import("../types.js").Docs} Docs */
9+
/** @import { Docs } from "../types.js"; */
1010

1111
/** @type {(str: string) => string} */
1212
const stripCarriageReturn =

scripts/internal/set-react-version.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from "../helpers.js";
1818
import { fetchPackageMetadata, npmRegistryBaseURL } from "../utils/npm.mjs";
1919

20-
/** @typedef {import("../types.js").Manifest} Manifest */
20+
/** @import { Manifest } from "../types.js"; */
2121
/**
2222
* @template T
2323
* @typedef {{ [P in keyof T]: Required<NonNullable<T[P]>> }} RequiredObject<T>

scripts/testing/test-apple.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import { URL, fileURLToPath } from "node:url";
1010
import { memo, readTextFile } from "../helpers.js";
1111
import { $ } from "./test-e2e.mjs";
1212

13-
/**
14-
* @typedef {import("../types.js").BuildConfig} BuildConfig
15-
*/
13+
/** @import { BuildConfig } from "../types.js"; */
1614

1715
export const getIOSSimulatorName = memo(() => {
1816
const wdioConfig = new URL(

scripts/testing/test-matrix.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ import { getIOSSimulatorName, installPods } from "./test-apple.mjs";
1515
import { $, $$, test } from "./test-e2e.mjs";
1616

1717
/**
18-
* @typedef {import("../types.js").BuildConfig} BuildConfig
19-
* @typedef {import("../types.js").PlatformConfig} PlatformConfig
20-
* @typedef {import("../types.js").TargetPlatform} TargetPlatform
18+
* @import { BuildConfig, PlatformConfig, TargetPlatform } from "../types.js";
2119
*/
2220

2321
const DEFAULT_PLATFORMS = ["android", "ios"];

scripts/utils/parseargs.mjs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ import * as path from "node:path";
55
import { URL, fileURLToPath } from "node:url";
66
import * as util from "node:util";
77

8-
/**
9-
* @typedef {import("../types.js").Options} Options;
10-
*/
11-
/**
12-
* @template {Options} O
13-
* @typedef {import("../types.js").Args<O>} Args;
14-
*/
8+
/** @import { Args, Options } from "../types.js"; */
159

1610
/**
1711
* @template {Options} O

0 commit comments

Comments
 (0)