Skip to content

Commit a2e837f

Browse files
committed
nice things
1 parent b418cf3 commit a2e837f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core-types/src/schema/fields.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ export interface ObjectSchema {
10581058
* @returns {ResourceSchema} the passed in schema
10591059
* @public
10601060
*/
1061-
export function resourceSchema(schema: ResourceSchema): ResourceSchema {
1061+
export function resourceSchema<T extends ResourceSchema>(schema: T): T {
10621062
return schema;
10631063
}
10641064

@@ -1075,7 +1075,7 @@ export function resourceSchema(schema: ResourceSchema): ResourceSchema {
10751075
* @returns {ObjectSchema} the passed in schema
10761076
* @public
10771077
*/
1078-
export function objectSchema(schema: ObjectSchema): ObjectSchema {
1078+
export function objectSchema<T extends ObjectSchema>(schema: T): T {
10791079
return schema;
10801080
}
10811081

0 commit comments

Comments
 (0)