Skip to content

Commit 2236f4f

Browse files
author
Timothy Lindvall
committed
fix: Update type on BroccoliTreeImporter.import().
1 parent 49751e1 commit 2236f4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/@css-blocks/ember/src/BroccoliTreeImporter.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Configuration, ImportedFile, Importer, Syntax, syntaxFromExtension } from "@css-blocks/core";
1+
import { Configuration, ImportedCompiledCssFile, ImportedFile, Importer, Syntax, syntaxFromExtension } from "@css-blocks/core";
22
import type { FS as MergedFileSystem } from "fs-merger";
33
import * as path from "path";
44

@@ -48,7 +48,7 @@ export class BroccoliTreeImporter implements Importer {
4848
}
4949
}
5050

51-
async import(identifier: string, config: Readonly<Configuration>): Promise<ImportedFile> {
51+
async import(identifier: string, config: Readonly<Configuration>): Promise<ImportedFile | ImportedCompiledCssFile> {
5252
if (isBroccoliTreeIdentifier(identifier)) {
5353
let relativePath = identToPath(identifier);
5454
let contents = this.input.readFileSync(relativePath, "utf8");

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -13721,7 +13721,7 @@ miller-rabin@^4.0.0:
1372113721
bn.js "^4.0.0"
1372213722
brorand "^1.0.1"
1372313723

13724-
"mime-db@>= 1.43.0 < 2":
13724+
[email protected], "mime-db@>= 1.43.0 < 2":
1372513725
version "1.43.0"
1372613726
resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz#0a12e0502650e473d735535050e7c8f4eb4fae58"
1372713727
integrity sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==

0 commit comments

Comments
 (0)