Skip to content

Commit

Permalink
fix(type): declare node-sass-tile-importer as Importer (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Nov 15, 2019
1 parent 3c800a0 commit 3eca5af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/build/handlers/sass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default (api: API, entry: EntrySass, args: CLIArgs): Promise<any> => {
.pipe(concat(destFile as string))
.pipe(gulpIf(entry.sourceMaps, sourcemaps.init()))
.pipe(
sass(sassOptions).on('error', function onError(error) {
sass(sassOptions).on('error', function onError(error: string) {
// @ts-ignore
sass.logError.bind(this)(error);
reject(error);
Expand Down
8 changes: 7 additions & 1 deletion types/modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ declare module 'rollup-plugin-terser' {
export { terser };
}

declare module 'node-sass-tilde-importer' {}
declare module 'node-sass-tilde-importer' {
import { Importer } from 'node-sass';

function importer(): Importer;

export default importer;
}

declare module 'stylelint-formatter-pretty' {}

Expand Down

0 comments on commit 3eca5af

Please sign in to comment.