Skip to content

Commit

Permalink
refactor: remove already deprecated WriterFunctions and `TypeGuards…
Browse files Browse the repository at this point in the history
…` exports.

BREAKING CHANGE: Removed already deprecated `WriterFunctions` and `TypeGuards` exports. Use `Writers` and `Node` instead.
  • Loading branch information
dsherret committed Nov 13, 2021
1 parent f22a50d commit be87373
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 23 deletions.
13 changes: 8 additions & 5 deletions deno/ts_morph.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { errors, ts, StandardizedFilePath } from "./common/mod.ts";
import { errors, StandardizedFilePath, ts } from "./common/mod.ts";

/** Holds the compiler options. */
export declare class CompilerOptionsContainer extends SettingsContainer<ts.CompilerOptions> {
Expand Down Expand Up @@ -132,6 +132,13 @@ export declare const ResolutionHosts: {
deno: ResolutionHostFactory;
};

export interface RuntimeDirEntry {
name: string;
isFile: boolean;
isDirectory: boolean;
isSymlink: boolean;
}

export declare abstract class SettingsContainer<T extends object> {
protected _settings: T;
/**
Expand Down Expand Up @@ -853,11 +860,7 @@ export declare class Writers {
static returnStatement(value: WriterFunctionOrValue): WriterFunction;
}

/** @deprecated Use `Writers`. */
declare const WriterFunctions: typeof Writers;
export declare type WriterFunctionOrValue = string | number | WriterFunction;
/** @deprecated Use static methods on `Node`. */
export declare const TypeGuards: typeof Node;
export declare type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
export declare type ModuleName = Identifier | StringLiteral;
export declare type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration;
Expand Down
Loading

0 comments on commit be87373

Please sign in to comment.