@navita/adapter 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +9 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -14,13 +14,19 @@ declare function addCss(css: StyleRule): string;
14
14
  declare function addStaticCss(selector: string, css: GlobalStyleRule): void;
15
15
  declare function addKeyframe(keyframe: CSSKeyframes): string;
16
16
  declare function addFontFace(fontFace: FontFaceRule | FontFaceRule[]): string;
17
+ type Start = number;
18
+ type End = number;
19
+ type Position = [Start, End];
17
20
  declare function collectResult<T>(input: {
18
21
  filePath: string;
19
22
  index: number;
20
23
  result: () => T;
21
- identifier?: string;
22
- line: number;
23
- column: number;
24
+ identifier: string;
25
+ position: Position;
26
+ sourceMap: {
27
+ line: number;
28
+ column: number;
29
+ };
24
30
  }): T;
25
31
 
26
32
  export { Adapter, addCss, addFontFace, addKeyframe, addStaticCss, collectResult, generateIdentifier, setAdapter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navita/adapter",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Shared adapter for Navita",
5
5
  "keywords": [
6
6
  "adapter",