An open API service indexing awesome lists of open source software.

https://github.com/ggoodman/ts-primitives

TypeScript primitives extracted from vscode and elsewhere
https://github.com/ggoodman/ts-primitives

composable emitter primitives typescript

Last synced: 3 months ago
JSON representation

TypeScript primitives extracted from vscode and elsewhere

Awesome Lists containing this project

README

          

# Useful TypeScript primitives

This codebase produces an npm module that is an automatic derivation of some useful concepts from the [Microsoft/vscode](https://github.com/Microsoft/vscode) repo's [vs/base/common](https://github.com/Microsoft/vscode/tree/master/src/vs/base/common) directory.

## Documentation

[API Documentation](https://ggoodman.github.io/ts-primitives)

## Development

### Rebuild from source

Read code from the upstream `vscode` repo at the `UPSTREAM_GIT_HASHISH` (or `master` if not specified) and:

1. Generate a tree-shaken module from `async.ts`, `cancellation.ts`, `event.ts` and `lifecycle.ts`.
2. Produces `tsdoc` documents in `./docs`.

```sh
npm run build [UPSTREAM_GIT_HASHISH]
```