@telia-ace/widget-utilities 1.0.8 → 1.0.9-next.3

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.
@@ -1,4 +1,4 @@
1
- declare type ArgumentHandler = string | [boolean, string | string[]] | undefined;
1
+ type ArgumentHandler = string | [boolean, string | string[]] | undefined;
2
2
  export declare function uniqueClassArray(classNames: string[]): string[];
3
3
  export declare function append(className1?: string, className2?: string): string;
4
4
  export declare function handleFunctionArgument(expression: boolean, classes: string | string[]): string | undefined;
package/dist/batch.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type BatchFunction<T> = (acc: T) => T;
2
- export declare type Batch<T> = (fn: BatchFunction<T>) => Promise<T>;
1
+ export type BatchFunction<T> = (acc: T) => T;
2
+ export type Batch<T> = (fn: BatchFunction<T>) => Promise<T>;
3
3
  declare const createBatch: <T>(delay: number, createFallback: () => T) => Batch<T>;
4
4
  export default createBatch;
@@ -1,11 +1,11 @@
1
1
  import { Container } from '@webprovisions/platform';
2
- declare type Item = {
2
+ type Item = {
3
3
  id: string;
4
4
  items?: Item[];
5
5
  title: string;
6
6
  symbol?: any;
7
7
  };
8
- declare type ChildParentStructure = {
8
+ type ChildParentStructure = {
9
9
  [key: number]: string;
10
10
  };
11
11
  export declare function categoryTrail(id: string, items: Item[], ids?: string[], structure?: ChildParentStructure): string[];
@@ -1,4 +1,4 @@
1
- export declare type Input = {
1
+ export type Input = {
2
2
  phrase?: string;
3
3
  category?: ParamValue;
4
4
  guideCategory?: ParamValue;
@@ -14,8 +14,8 @@ export declare type Input = {
14
14
  } & {
15
15
  [key: string]: ParamValue;
16
16
  };
17
- export declare type ParamValue = string | number | any;
18
- export declare type Params = {
17
+ export type ParamValue = string | number | any;
18
+ export type Params = {
19
19
  [key: string]: ParamValue;
20
20
  };
21
21
  export default function createParams(args?: Input): Params;
package/dist/lock.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare type Task = () => Promise<any> | any;
2
- export declare type AddTask = (task: Task) => Promise<any>;
1
+ type Task = () => Promise<any> | any;
2
+ export type AddTask = (task: Task) => Promise<any>;
3
3
  /**
4
4
  * Creates a lock for the specified owner that allows only one executing
5
5
  * task simultaneously.
@@ -1,5 +1,5 @@
1
- declare type Action = (...args: any[]) => Function | false;
2
- export declare type WaitForOptions = {
1
+ type Action = (...args: any[]) => Function | false;
2
+ export type WaitForOptions = {
3
3
  callCount?: number;
4
4
  };
5
5
  export default class WaitFor {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-utilities",
3
- "version": "1.0.8",
3
+ "version": "1.0.9-next.3",
4
4
  "description": "Utilities used internally by ACE Widget packages.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -24,7 +24,7 @@
24
24
  "@webprovisions/platform": "^1.1.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@telia-ace/widget-developer-tools": "^1.0.14"
27
+ "@telia-ace/widget-developer-tools": "1.0.15-next.3"
28
28
  },
29
29
  "scripts": {
30
30
  "clean": "rimraf ./dist",