Add t3code oxlint schema compile rule
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
06c2b010c6
commit
3dd82e21b0
74 files changed
+425
-250
No files matched your search
@@ -22,6 +22,7 @@ import {
|
||||
import { ServerConfig } from "../config.ts";
|
||||
import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
|
||||
import * as SourceControlProviderRegistry from "./SourceControlProviderRegistry.ts";
|
||||
const isSourceControlRepositoryError = Schema.is(SourceControlRepositoryError);
|
||||
|
||||
export interface SourceControlRepositoryServiceShape {
|
||||
readonly lookupRepository: (
|
||||
@@ -69,7 +70,7 @@ function repositoryError(input: {
|
||||
|
||||
function mapRepositoryError(operation: string, provider: SourceControlProviderKind) {
|
||||
return Effect.mapError((cause: unknown) =>
|
||||
Schema.is(SourceControlRepositoryError)(cause)
|
||||
isSourceControlRepositoryError(cause)
|
||||
? cause
|
||||
: repositoryError({
|
||||
operation,
|
||||
|
||||
Reference in new issue
Block a user