UNPKG
piecemeal
Version:
latest (0.1.0)
next (0.0.2-next.2)
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.2-next.2
0.0.2-next.1
0.0.1
Effortless incrementally deliver your data
github.com/maraisr/piecemeal
maraisr/piecemeal
piecemeal
/
types
/
message.d.ts
9 lines
(5 loc)
•
225 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Payload
}
from
'piecemeal'
;
type
Dict
<T> =
Record
<
string
, T>;
type
Headers
=
Dict
<
string
|
ReadonlyArray
<
string
>>;
declare
const
raw
: <T
extends
unknown
>
(
data
: T,
headers
?:
Headers
) =>
Payload
<T>;
export
{ raw };