Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
746 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { Compiler } from 'webpack';
|
---|
9 | export declare type BuilderWatcherCallback = (events: Array<{
|
---|
10 | path: string;
|
---|
11 | type: 'created' | 'modified' | 'deleted';
|
---|
12 | time?: number;
|
---|
13 | }>) => void;
|
---|
14 | export interface BuilderWatcherFactory {
|
---|
15 | watch(files: Iterable<string>, directories: Iterable<string>, callback: BuilderWatcherCallback): {
|
---|
16 | close(): void;
|
---|
17 | };
|
---|
18 | }
|
---|
19 | export declare class BuilderWatchPlugin {
|
---|
20 | private readonly watcherFactory;
|
---|
21 | constructor(watcherFactory: BuilderWatcherFactory);
|
---|
22 | apply(compiler: Compiler): void;
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.