UNPKG
@chartshq/datamodel
Version:
latest (3.0.0)
3.0.0
An environment with `node`, `rustup` and `wasm-pack` set up.
@chartshq/datamodel
/
dist
/
esm
/
web
/
src
/
data
/
fieldParsers
/
field-contract.d.ts
7 lines
(6 loc)
•
249 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
FieldSubtype
}
from
'../../constants/fields'
;
interface
FieldContract
{
_type
:
FieldSubtype
;
parse
(
val
:
string
|
number
|
undefined
|
null
,
format
:
string
|
Function
):
string
|
number
|
null
|
undefined
; }
export
{
FieldContract
};