@equinor/workspace-core
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,3 +5,3 @@ /** Callback function for when value changes | ||
*/ | ||
export declare type OnchangeCallback<TValue> = (newValue: TValue, oldValue?: TValue) => void; | ||
export type OnchangeCallback<TValue> = (newValue: TValue, oldValue?: TValue) => void; | ||
/** Stores the callback under a numbered id as functions cant be uniquely identified */ | ||
@@ -8,0 +8,0 @@ export interface Callback<TValue> { |
/** Function signature for checking whether two values are equal */ | ||
export declare type CompareFunc<TValue> = (a?: TValue, b?: TValue) => boolean; | ||
export type CompareFunc<TValue> = (a?: TValue, b?: TValue) => boolean; |
@@ -1,3 +0,3 @@ | ||
export declare type BaseEvent = { | ||
export type BaseEvent = { | ||
type: string; | ||
}; |
@@ -1,3 +0,3 @@ | ||
export declare type ObjectType<T> = { | ||
export type ObjectType<T> = { | ||
[K in keyof T]: T[K]; | ||
}; |
@@ -5,2 +5,2 @@ /** | ||
*/ | ||
export declare type ServiceCtor = (destroy: VoidFunction) => void; | ||
export type ServiceCtor = (destroy: VoidFunction) => void; |
import { ServiceCtor } from '../../types/serviceCtor'; | ||
/** type for capturing controller state function */ | ||
declare type CaptureFunc<TState> = () => Partial<TState>; | ||
type CaptureFunc<TState> = () => Partial<TState>; | ||
/** | ||
@@ -5,0 +5,0 @@ * Allows for capturing controller states and consolidates data for persistance. |
import { ServiceCtor } from '../../types/serviceCtor'; | ||
import { BaseEvent } from '../../types/event'; | ||
declare type EventBus<TEvents extends BaseEvent> = { | ||
type EventBus<TEvents extends BaseEvent> = { | ||
sendEvent: (ev: TEvents) => void; | ||
@@ -5,0 +5,0 @@ subscribe: (key: TEvents['type'], handler: (ev: TEvents) => void) => () => void; |
{ | ||
"name": "@equinor/workspace-core", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"type": "module", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@equinor/workspace-observable-proxy": "^0.2.2", | ||
"@equinor/workspace-observable-proxy": "^0.2.3", | ||
"rxjs": "^7.8.0" | ||
@@ -19,0 +19,0 @@ }, |
@@ -8,13 +8,13 @@ # Workspace Core | ||
- [Workspace Core](#workspace-core) | ||
- [Install from NPM](#install-from-npm) | ||
- [Workspace Controller](#workspace-controller) | ||
- [Controllers](#controllers) | ||
- [Middleware](#middleware) | ||
- [Data](#data) | ||
- [Context](#context) | ||
- [Click and onClick](#click-and-onclick) | ||
- [Error](#error) | ||
- [Building](#building) | ||
- [Running unit tests](#running-unit-tests) | ||
- [Workspace Core](#workspace-core) | ||
- [Install from NPM](#install-from-npm) | ||
- [Workspace Controller](#workspace-controller) | ||
- [Controllers](#controllers) | ||
- [Middleware](#middleware) | ||
- [Data](#data) | ||
- [Context](#context) | ||
- [Click and onClick](#click-and-onclick) | ||
- [Error](#error) | ||
- [Building](#building) | ||
- [Running unit tests](#running-unit-tests) | ||
@@ -133,7 +133,7 @@ [<< Project Readme](/README.md) | ||
- onError | ||
- onError | ||
Core Functions: | ||
- throwError | ||
- throwError | ||
@@ -140,0 +140,0 @@ Controllers and middleware usually bind through workspace controller events. Alternatively, you can extend the workspace controller with common data fields through the controller's context property. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91063