refactor: 프론트 템플릿 리펙토링
This commit is contained in:
+6
-7
@@ -1,9 +1,8 @@
|
||||
import type { RawReferenceHttpExecutor } from "../../../src/features/reference-feature/adapters/reference-http-gateway.ts";
|
||||
import type { ReferenceHttpBinding } from "../../../src/features/reference-feature/adapters/reference-http-gateway.ts";
|
||||
|
||||
declare const http: RawReferenceHttpExecutor;
|
||||
declare const http: ReferenceHttpBinding;
|
||||
|
||||
http.execute({
|
||||
operationId: "GET_REFERENCE_RESOURCE",
|
||||
routeId: "REFERENCE_RESOURCE_LIST",
|
||||
pathParams: { resourceId: "resource-1" },
|
||||
});
|
||||
const listInput = { limit: 20 };
|
||||
|
||||
// GET is bound to { resourceId: string }; list input must be rejected.
|
||||
http.execute("GET_REFERENCE_RESOURCE", listInput);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { Result } from "../../../src/application/result.ts";
|
||||
import type { Result } from "../../../src/contracts/result.ts";
|
||||
|
||||
export function invalidUnwrap(result: Result<number, string>): number {
|
||||
return result.value;
|
||||
|
||||
Reference in New Issue
Block a user