Skip to main content

@backstage/types

Home > @backstage/types

Common TypeScript types used within Backstage

Functions

FunctionDescription
durationToMilliseconds(duration)Converts a HumanDuration to milliseconds.

Interfaces

InterfaceDescription
JsonArrayA type representing all allowed JSON array values.

Type Aliases

Type AliasDescription
HumanDurationHuman friendly durations object.
JsonObjectA type representing all allowed JSON object values.
JsonPrimitiveA type representing all allowed JSON primitive values.
JsonValueA type representing all allowed JSON values.
Observable

Observable sequence of values and errors, see TC39.

https://github.com/tc39/proposal-observable

This is used as a common return type for observable values and can be created using many different observable implementations, such as zen-observable or RxJS 5.

ObserverObserver interface for consuming an Observer, see TC39.
SubscriptionSubscription returned when subscribing to an Observable, see TC39.