Skip to content

Commit aa8ba40

Browse files
jbl428imdudu1
andcommitted
fix: change wrong type name
Co-authored-by: imdudu1 <[email protected]>
1 parent 2e23e7c commit aa8ba40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/decorators/request-form.decorator.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, test, expect } from "vitest";
22
import { REQUEST_FORM_METADATA } from "./constants";
33
import {
44
RequestForm,
5-
type RequestFromMetadata,
5+
type RequestFormMetadata,
66
} from "./request-form.decorator";
77

88
describe("RequestForm", () => {
@@ -15,7 +15,7 @@ describe("RequestForm", () => {
1515
}
1616

1717
// when
18-
const result: RequestFromMetadata = Reflect.getMetadata(
18+
const result: RequestFormMetadata = Reflect.getMetadata(
1919
REQUEST_FORM_METADATA,
2020
TestService.prototype,
2121
"request"
@@ -35,7 +35,7 @@ describe("RequestForm", () => {
3535
}
3636

3737
// when
38-
const result: RequestFromMetadata = Reflect.getMetadata(
38+
const result: RequestFormMetadata = Reflect.getMetadata(
3939
REQUEST_FORM_METADATA,
4040
TestService.prototype,
4141
"request"

lib/decorators/request-form.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { REQUEST_FORM_METADATA } from "./constants";
22
import { MetadataMap } from "../types/metadata-map";
33

4-
export type RequestFromMetadata = MetadataMap<number, string | undefined>;
4+
export type RequestFormMetadata = MetadataMap<number, string | undefined>;
55

66
export function RequestForm(key?: string): ParameterDecorator {
77
return (target, propertyKey, parameterIndex) => {

0 commit comments

Comments
 (0)