Fix LoaderHandler.add signature. (#9410)

Also specify `LoaderHandler.handlers` element type.
This commit is contained in:
Denis Shelomovskij
2016-05-23 13:13:17 +09:00
committed by Horiuchi_H
parent c709db2e04
commit e69daec7f7
+2 -2
View File
@@ -1928,9 +1928,9 @@ declare namespace THREE {
}
export interface LoaderHandler{
handlers: any[];
handlers: (RegExp | Loader)[];
add(regex: string, loader: Loader): void;
add(regex: RegExp, loader: Loader): void;
get(file: string): Loader;
}