-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[DX-5712] Upgrade to Devvit 0.10.15-next"
This reverts commit 1d7e631.
- Loading branch information
1 parent
1d7e631
commit f5e4a1f
Showing
6 changed files
with
53 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type {DevvitUIError} from '@devvit/previews/dist/devvit-blocks-preview.js' | ||
import type {Diagnostic} from 'typescript' | ||
import type {PreviewError} from './preview-error.js' | ||
|
||
export type Diagnostics = { | ||
// to-do: unhandled promise rejections. | ||
/** Uncaught errors thrown when executing the pen program. */ | ||
previewErrs: DevvitUIError[] | ||
previewErrs: PreviewError[] | ||
tsErrs: Diagnostic[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type {WorkerErrorType} from '@devvit/runtime-lite/client/BrowserLiteClient.js' | ||
|
||
export type PreviewError = {type: WorkerErrorType; err: unknown} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
export function Bubble<T>(type: string, detail: T): CustomEvent<T> { | ||
// Composed bubbles through shadow DOM. | ||
return new CustomEvent(type, {bubbles: true, composed: true, detail}) | ||
return new CustomEvent(type, { | ||
bubbles: true, | ||
composed: true, // Bubble through shadow DOM. | ||
detail | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters