Skip to content

Commit

Permalink
chore: upgrade internal ts-morph to 17.0.0 (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Nov 20, 2022
1 parent a583f58 commit 1009672
Show file tree
Hide file tree
Showing 16 changed files with 332 additions and 326 deletions.
2 changes: 1 addition & 1 deletion deno/bootstrap/ts_morph_bootstrap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export interface ResolutionHost {
* Factory used to create a resolution host.
* @remarks The compiler options are retrieved via a function in order to get the project's current compiler options.
*/
export declare type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;
export type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;

/** Collection of reusable resolution hosts. */
export declare const ResolutionHosts: {
Expand Down
8 changes: 4 additions & 4 deletions deno/common/ts_morph_common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export declare class LocaleStringComparer implements Comparer<string> {
/** Static instance for reuse. */
static readonly instance: LocaleStringComparer;
/** @inheritdoc */
compareTo(a: string, b: string): 1 | -1 | 0;
compareTo(a: string, b: string): 0 | 1 | -1;
}

/**
Expand Down Expand Up @@ -282,7 +282,7 @@ export interface ResolutionHost {
* Factory used to create a resolution host.
* @remarks The compiler options are retrieved via a function in order to get the project's current compiler options.
*/
export declare type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;
export type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;

/** Collection of reusable resolution hosts. */
export declare const ResolutionHosts: {
Expand Down Expand Up @@ -750,7 +750,7 @@ export declare class RealFileSystemHost implements FileSystemHost {
}

/** Nominal type to denote a file path that has been standardized. */
export declare type StandardizedFilePath = string & {
export type StandardizedFilePath = string & {
_standardizedFilePathBrand: undefined;
};

Expand Down Expand Up @@ -1036,7 +1036,7 @@ export declare function deepClone<T extends object>(objToClone: T): T;
/**
* Event container subscription type
*/
export declare type EventContainerSubscription<EventArgType> = (arg: EventArgType) => void;
export type EventContainerSubscription<EventArgType> = (arg: EventArgType) => void;

/**
* Event container for event subscriptions.
Expand Down
238 changes: 119 additions & 119 deletions deno/ts_morph.d.ts

Large diffs are not rendered by default.

125 changes: 63 additions & 62 deletions deno/ts_morph.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/bootstrap/lib/ts-morph-bootstrap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export interface ResolutionHost {
* Factory used to create a resolution host.
* @remarks The compiler options are retrieved via a function in order to get the project's current compiler options.
*/
export declare type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;
export type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;

/** Collection of reusable resolution hosts. */
export declare const ResolutionHosts: {
Expand Down
8 changes: 4 additions & 4 deletions packages/common/lib/ts-morph-common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export declare class LocaleStringComparer implements Comparer<string> {
/** Static instance for reuse. */
static readonly instance: LocaleStringComparer;
/** @inheritdoc */
compareTo(a: string, b: string): 1 | -1 | 0;
compareTo(a: string, b: string): 0 | 1 | -1;
}

/**
Expand Down Expand Up @@ -281,7 +281,7 @@ export interface ResolutionHost {
* Factory used to create a resolution host.
* @remarks The compiler options are retrieved via a function in order to get the project's current compiler options.
*/
export declare type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;
export type ResolutionHostFactory = (moduleResolutionHost: ts.ModuleResolutionHost, getCompilerOptions: () => ts.CompilerOptions) => ResolutionHost;

/** Collection of reusable resolution hosts. */
export declare const ResolutionHosts: {
Expand Down Expand Up @@ -749,7 +749,7 @@ export declare class RealFileSystemHost implements FileSystemHost {
}

/** Nominal type to denote a file path that has been standardized. */
export declare type StandardizedFilePath = string & {
export type StandardizedFilePath = string & {
_standardizedFilePathBrand: undefined;
};

Expand Down Expand Up @@ -1035,7 +1035,7 @@ export declare function deepClone<T extends object>(objToClone: T): T;
/**
* Event container subscription type
*/
export declare type EventContainerSubscription<EventArgType> = (arg: EventArgType) => void;
export type EventContainerSubscription<EventArgType> = (arg: EventArgType) => void;

/**
* Event container for event subscriptions.
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export namespace errors {
* @param value - Value to check.
* @param errorMessage - Error message to throw when not defined.
*/
export function throwIfNullOrUndefined<T>(value: T | undefined, errorMessage: string | (() => string), node?: Node) {
export function throwIfNullOrUndefined<T>(value: T | undefined, errorMessage: string | (() => string), node?: Node): T {
if (value == null)
throw new InvalidOperationError(typeof errorMessage === "string" ? errorMessage : errorMessage(), node);
return value;
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/deps.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as path from "https://deno.land/std@0.140.0/path/mod.ts";
export * as tsMorph from "https://deno.land/x/ts_morph@14.0.0/mod.ts";
export * as tsMorph from "https://deno.land/x/ts_morph@17.0.0/mod.ts";
Loading

0 comments on commit 1009672

Please sign in to comment.