@sindresorhus/is
import is from '@sindresorhus/is';
declare namespace is {
const undefined: (value: any) => boolean;
const string: (value: any) => boolean;
const number: (value: any) => boolean;
const function_: (value: any) => boolean;
const null_: (value: any) => boolean;
const class_: (value: any) => any;
const boolean: (value: any) => boolean;
const symbol: (value: any) => boolean;
const array: (arg: any) => arg is any[];
const buffer: (obj: any) => obj is Buffer;
const nullOrUndefined: (value: any) => boolean;
const object: (value: any) => boolean;
const iterable: (value: any) => boolean;
const generator: (value: any) => boolean;
const nativePromise: (value: any) => boolean;
const promise: (value: any) => boolean;
const generatorFunction: (value: any) => boolean;
const asyncFunction: (value: any) => boolean;
const boundFunction: (value: any) => boolean;
const regExp: (value: any) => boolean;
const date: (value: any) => boolean;
const error: (value: any) => boolean;
const map: (value: any) => boolean;
const set: (value: any) => boolean;
const weakMap: (value: any) => boolean;
const weakSet: (value: any) => boolean;
const int8Array: (value: any) => boolean;
const uint8Array: (value: any) => boolean;
const uint8ClampedArray: (value: any) => boolean;
const int16Array: (value: any) => boolean;
const uint16Array: (value: any) => boolean;
const int32Array: (value: any) => boolean;
const uint32Array: (value: any) => boolean;
const float32Array: (value: any) => boolean;
const float64Array: (value: any) => boolean;
const arrayBuffer: (value: any) => boolean;
const sharedArrayBuffer: (value: any) => boolean;
const dataView: (value: any) => boolean;
const directInstanceOf: (instance: any, klass: any) => boolean;
const truthy: (value: any) => boolean;
const falsy: (value: any) => boolean;
const nan: (value: any) => boolean;
const primitive: (value: any) => boolean;
const integer: (value: any) => boolean;
const safeInteger: (value: any) => boolean;
const plainObject: (value: any) => boolean;
const typedArray: (value: any) => boolean;
const arrayLike: (value: any) => boolean;
const inRange: (value: number, range: number | number[]) => boolean;
const domElement: (value: any) => boolean;
const nodeStream: (value: any) => boolean;
const infinite: (value: any) => boolean;
const even: (rem: number) => boolean;
const odd: (rem: number) => boolean;
const empty: (value: any) => boolean;
const emptyOrWhitespace: (value: any) => boolean;
function any(...predicate: any[]): any;
function all(...predicate: any[]): any;
}
复制代码
@ngtools/webpack
import {
AngularCompilerPluginOptions,
PLATFORM,
AngularCompilerPlugin
} from "@ngtools/webpack";
import ngcLoader from "@ngtools/webpack";
复制代码
@ngtools/json-schema
import { SchemaClass, SchemaClassFactory } from "@ngtools/json-schema";
复制代码
@ngtools/logger
import {
LoggerConstructor,
ConsoleLoggerStack,
IndentLogger,
Logger,
LogLevel,
LogEntry,
LoggerMetadata,
NullLogger,
TransformLogger
} from "@ngtools/logger";
复制代码
@angular-devkit/architect
import {
BuilderContext,
BuildEvent,
Builder,
BuilderPathsMap,
BuilderPaths,
BuilderDescription,
BuilderConstructor,
ProjectNotFoundException,
TargetNotFoundException,
ConfigurationNotFoundException,
BuilderCannotBeResolvedException,
ArchitectNotYetLoadedException,
BuilderNotFoundException,
BuilderConfiguration,
TargetSpecifier,
TargetMap,
TargetOptions,
TargetConfiguration,
Target,
Architect
} from '@angular-devkit/architect';
复制代码
@angular-devkit/build-angular
import {
AppShellBuilder,
NormalizedBrowserBuilderSchema,
BrowserBuilder,
BrowserBuilderSchema,
AssetPattern,
AssetPatternObject,
ExtraEntryPoint,
ExtraEntryPointObject,
FileReplacement,
DeprecatedFileReplacment,
CurrentFileReplacement,
OutputHashing,
StylePreprocessorOptions,
Budget,
BudgetType,
DevServerBuilder,
DevServerBuilderOptions,
ExtractI18nBuilderOptions,
ExtractI18nBuilder,
NormalizedKarmaBuilderSchema,
KarmaBuilder,
KarmaBuilderSchema,
ProtractorBuilderOptions,
ProtractorBuilder,
ServerBuilder,
TslintBuilderOptions,
TslintBuilder
} from "@angular-devkit/build-angular";
复制代码
@angular-devkit/build-optimizer
import {
buildOptimizerLoader,
buildOptimizer,
PurifyPlugin,
purify,
transformJavascript,
getFoldFileTransformer,
getImportTslibTransformer,
testImportTslib,
getPrefixClassesTransformer,
testPrefixClasses,
getPrefixFunctionsTransformer,
getScrubFileTransformer,
testScrubFile,
getWrapEnumsTransformer,
testWrapEnums
} from "@angular-devkit/build-optimizer";
复制代码
@angular-devkit/core
import {
experimental,
logging,
terminal,
schema,
tags,
strings,
clean,
mapObject,
deepCopy,
TemplateOptions,
TemplateAst,
TemplateAstBase,
TemplateAstContent,
TemplateAstComment,
TemplateAstEvaluate,
TemplateAstEscape,
TemplateAstInterpolate,
TemplateAstNode,
templateParser,
template,
DependencyNotFoundException,
CircularDependencyFoundException,
PartiallyOrderedSet,
PriorityQueue,
isPromise,
isObservable,
virtualFs,
InvalidPathException,
PathMustBeAbsoluteException,
PathCannotBeFragmentException,
Path,
PathFragment,
NormalizedSep,
NormalizedRoot,
split,
extname,
basename,
dirname,
join,
isAbsolute,
relative,
resolve,
fragment,
normalize,
WindowsPath,
PosixPath,
asWindowsPath,
asPosixPath,
getSystemPath,
InvalidJsonCharacterException,
UnexpectedEndOfInputException,
JsonParserContext,
JsonParseMode,
parseJsonAst,
parseJson,
Position,
JsonAstNode,
JsonAstNodeBase,
JsonAstNumber,
JsonAstString,
JsonAstIdentifier,
JsonArray,
JsonAstArray,
JsonObject,
JsonAstKeyValue,
JsonAstObject,
JsonAstConstantFalse,
JsonAstConstantNull,
JsonAstConstantTrue,
JsonAstMultilineComment,
JsonAstComment,
JsonValue,
BaseException,
FileDoesNotExistException,
FileAlreadyExistException,
PathIsDirectoryException,
PathIsFileException,
ContentHasMutatedException,
InvalidUpdateRecordException,
MergeConflictException,
UnimplementedException,
UnsupportedPlatformException
} from '@angular-devkit/core';
复制代码
@angular-devkit/schematics
import {
CollectionImpl,
UnknownUrlSourceProtocol,
UnknownCollectionException,
CircularCollectionException,
UnknownSchematicException,
PrivateSchematicException,
SchematicEngineConflictingException,
UnregisteredTaskException,
SchematicEngine,
CollectionDescription,
SchematicDescription,
EngineHost,
Engine,
Collection,
Schematic,
TypedSchematicContext,
SchematicContext,
RuleFactory,
FileOperator,
AsyncFileOperator,
Source,
SchematicsException,
TaskConfiguration,
TaskConfigurationGenerator,
TaskExecutor,
TaskExecutorFactory,
TaskId,
UpdateRecorder,
formats,
workflow,
TreeConstructor,
Tree,
source,
empty,
chain,
apply,
mergeWith,
noop,
filter,
asSource,
branchAndMerge,
when,
partitionApplyMerge,
forEach,
InvalidRuleResultException,
InvalidSourceResultException,
callSource,
callRule,
moveOp,
move,
RandomOptions,
externalSchematic,
schematic,
url,
DelegateTree,
EmptyTree,
FileSystemDirEntry,
FileSystemTree,
HostTree,
FileSystemCreateTree,
VirtualDirEntry,
VirtualTree,
InvalidSchematicsNameException,
SchematicImpl,
DryRunErrorEvent,
DryRunDeleteEvent,
DryRunCreateEvent,
DryRunUpdateEvent,
DryRunRenameEvent,
DryRunEvent,
DryRunSink,
FileSystemSink,
HostSink,
Sink,
SimpleSinkBase,
UnknownActionException,
Action,
ActionBase,
ActionList,
isContentAction,
OverwriteFileAction,
RenameFileAction,
DeleteFileAction
} from "@angular-devkit/schematics";
复制代码