Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 11385ff

Browse files
committed
feat(build-in-helper): sync to async
1 parent 7022df2 commit 11385ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/core/method/create-build-in-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function processStyleSheets() {
2626
isProcessing = false;
2727
}
2828

29-
export function createBuildIn(): void {
29+
export async function createBuildIn(): Promise<void> {
3030
if (typeof globalStyleSheetPromise === 'undefined') createGlobalStyleSheetPromise();
3131
if (!isProcessing && styleSheetQueue.length > 0) {
3232
isProcessing = true;

src/core/method/global-build-in-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function processStyleSheets() {
2626
isProcessing = false;
2727
}
2828

29-
export function globalBuildIn(): void {
29+
export async function globalBuildIn(): Promise<void> {
3030
if (typeof globalStyleSheetPromise === 'undefined') createGlobalStyleSheetPromise();
3131
if (!isProcessing && styleSheetQueue.length > 0) {
3232
isProcessing = true;

src/core/method/set-build-in-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function processStyleSheets() {
2626
isProcessing = false;
2727
}
2828

29-
export function setBuildIn(): void {
29+
export async function setBuildIn(): Promise<void> {
3030
if (typeof globalStyleSheetPromise === 'undefined') createGlobalStyleSheetPromise();
3131
if (!isProcessing && styleSheetQueue.length > 0) {
3232
isProcessing = true;

0 commit comments

Comments
 (0)