UNPKG

box-overflow-core

Version:

Headless UI for automatically collapsing boxes when overflow.

1 lines 779 B
{"version":3,"file":"types.cjs","sources":["../../src/types.ts"],"sourcesContent":["/**\n * @author shunzi <tobyzsj@gmail.com>\n * @date 2024-03-26 10:40:03\n */\nimport type * as CSS from 'csstype'\n\nexport enum ObserverType {\n Resize,\n Mutation,\n}\n\nexport type ResizeHandler = (ele: HTMLElement, entry: ResizeObserverEntry) => void\nexport type MutationHandler = (mutation: MutationRecord) => void\n\nexport type SetRequired< T, K extends keyof T > = Omit < T, K > & Required < Pick < T, K >>\n\nexport interface CSSProperties extends CSS.Properties<string | number> {\n}\n"],"names":["ObserverType"],"mappings":";;AAMY,IAAA,iCAAAA,kBAAL;AACLA,gBAAA,cAAA,QAAA,IAAA,CAAA,IAAA;AACAA,gBAAA,cAAA,UAAA,IAAA,CAAA,IAAA;AAFUA,SAAAA;AAAA,GAAA,gBAAA,CAAA,CAAA;;"}