Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
Signed-off-by: Nik Nasr <[email protected]>
  • Loading branch information
nikrooz committed Dec 30, 2024
1 parent db44a14 commit d93b435
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions libs/data-access/admin-api/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import adminSpec from './lib/api/output.json';

export type * from './lib/api';
export type * from './lib/api/type';
export const spec = adminSpec;
2 changes: 1 addition & 1 deletion libs/features/query/src/lib/convertInvocation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { RawInvocation } from '@restate/data-access/admin-api';
import type { RawInvocation } from '@restate/data-access/admin-api/spec';
import { getComputedInvocationStatus } from './getComputedInvocationStatus';
import { convertToUTC } from './convertToUTC';

Expand Down
2 changes: 1 addition & 1 deletion libs/features/query/src/lib/convertJournal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type {
RunJournalEntryType,
SetStateJournalEntryType,
SleepJournalEntryType,
} from '@restate/data-access/admin-api';
} from '@restate/data-access/admin-api/spec';
import { convertToUTC } from './convertToUTC';
import {
awakeable,
Expand Down
2 changes: 1 addition & 1 deletion libs/features/query/src/lib/getComputedInvocationStatus.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {
InvocationComputedStatus,
RawInvocation,
} from '@restate/data-access/admin-api';
} from '@restate/data-access/admin-api/spec';

export function getComputedInvocationStatus(
invocation: RawInvocation
Expand Down
2 changes: 2 additions & 0 deletions libs/features/query/src/lib/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,6 @@ export function query(req: Request) {
headers
);
}

return Promise.resolve(Response.json({}));
}
3 changes: 2 additions & 1 deletion libs/features/query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"noImplicitOverride": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noPropertyAccessFromIndexSignature": true
"noPropertyAccessFromIndexSignature": true,
"esModuleInterop": true
},
"files": [],
"include": [],
Expand Down
1 change: 0 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@restate/features/overview-route": [
"libs/features/overview-route/src/index.ts"
],
"@restate/features/query": ["libs/features/query/src/index.ts"],
"@restate/features/restate-context": [
"libs/features/restate-context/src/index.ts"
],
Expand Down

0 comments on commit d93b435

Please sign in to comment.