Skip to content

Commit 6d9ff44

Browse files
committed
update
1 parent 3da03f1 commit 6d9ff44

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

apps/api-reference/next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/api-reference/src/components/EvmApi/parameter.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ export const TRANSFORMS: Partial<
2222
[ParameterType.IntArray]: (value) => [value],
2323
};
2424

25-
export const getPlaceHolder = <Name extends string>(
26-
parameter: Parameter<Name>,
27-
) => {
28-
return parameter.defaultValue ?? PLACEHOLDERS[parameter.type];
29-
};
25+
export const getPlaceHolder = (parameter: Parameter<string>): string =>
26+
parameter.defaultValue ?? PLACEHOLDERS[parameter.type];
3027

3128
export const PLACEHOLDERS: Record<ParameterType, string> = {
3229
[ParameterType.PriceFeedId]:

0 commit comments

Comments
 (0)