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1.2.3
1.2.2
1.2.1
1.2.0
1.1.20
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
Generic REST package
github.com/furystack/furystack
furystack/furystack
@furystack/rest
/
esm
/
endpoint-models
/
get-endpoint.d.ts
11 lines
•
300 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/
*
*
GET
-
by
-
id endpoint contract. `select` narrows the projected fields.
*
/
export type GetEntityEndpoint
<
T
,
TPrimaryKey extends keyof
T
>
=
{
query
:
{
select
?
:
Array
<
keyof
T
>
;
}
; url
:
{
id
:
T
[
TPrimaryKey
]
;
}
; result
:
T
;
}
;
/
/
# sourceMappingURL=get-endpoint.d.ts.map