mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Move interface definitions to namespace.
This commit is contained in:
@@ -39,3 +39,9 @@ gulp.task("inject:transform", () => {
|
||||
}))
|
||||
.pipe(gulp.dest("build"));
|
||||
});
|
||||
|
||||
function createOptions(starttag: inject.ITagFunction): inject.IOptions {
|
||||
return {
|
||||
starttag: starttag
|
||||
};
|
||||
}
|
||||
|
||||
Vendored
+25
-25
@@ -8,31 +8,31 @@
|
||||
|
||||
import File = require("vinyl");
|
||||
|
||||
interface ITagFunction {
|
||||
(targetExt: string, sourceExt: string): string;
|
||||
declare function inject(sources: NodeJS.ReadableStream, options?: inject.IOptions): NodeJS.ReadWriteStream;
|
||||
|
||||
declare namespace inject {
|
||||
interface ITagFunction {
|
||||
(targetExt: string, sourceExt: string): string;
|
||||
}
|
||||
|
||||
interface ITransformFunction {
|
||||
(filepath: string, file?: File, index?: number, length?: number, targetFile?: File): string;
|
||||
}
|
||||
|
||||
interface IOptions {
|
||||
ignorePath?: string | string[];
|
||||
relative?: boolean;
|
||||
addPrefix?: string;
|
||||
addSuffix?: string;
|
||||
addRootSlash?: boolean;
|
||||
name?: string;
|
||||
removeTags?: boolean;
|
||||
empty?: boolean;
|
||||
starttag?: string | ITagFunction;
|
||||
endtag?: string | ITagFunction;
|
||||
transform?: ITransformFunction;
|
||||
selfClosingTag?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface ITransformFunction {
|
||||
(filepath: string, file?: File, index?: number, length?: number, targetFile?: File): string;
|
||||
}
|
||||
|
||||
interface IOptions {
|
||||
ignorePath?: string | string[];
|
||||
relative?: boolean;
|
||||
addPrefix?: string;
|
||||
addSuffix?: string;
|
||||
addRootSlash?: boolean;
|
||||
name?: string;
|
||||
removeTags?: boolean;
|
||||
empty?: boolean;
|
||||
starttag?: string | ITagFunction;
|
||||
endtag?: string | ITagFunction;
|
||||
transform?: ITransformFunction;
|
||||
selfClosingTag?: boolean;
|
||||
}
|
||||
|
||||
declare function inject(sources: NodeJS.ReadableStream, options?: IOptions): NodeJS.ReadWriteStream;
|
||||
|
||||
declare namespace inject { }
|
||||
|
||||
export = inject;
|
||||
|
||||
Reference in New Issue
Block a user