import { kindKey } from "./keys" ; import { DataKind , DataWithPosition } from "./types" ; export const getKind = ( dataWithPosition ? ) : DataKind => { if ( ! dataWithPosition ) { return "undefined" ; } return dataWithPosition [ kindKey ] ; } ;