Skip to content

Commit

Permalink
fix(less): fileManager inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
Anidetrix committed Mar 20, 2020
1 parent 583617a commit aba12a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/typings/less.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ declare module "less" {

export type LoadOptions = { [k: string]: unknown };

class FileManager {
class AbstractFileManager {}
class FileManager extends AbstractFileManager {
supports(filename: string, currentDirectory: string, options: LoadOptions): boolean;
supportsSync(filename: string, currentDirectory: string, options: LoadOptions): boolean;
loadFile(filename: string, currentDirectory: string, options: LoadOptions): Promise<LoadedFile>;
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/less-import/node_modules/foo/bar/a.less

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aba12a4

Please sign in to comment.