/typescript-patterns

Programming patterns and TypeScript usage examples

Primary LanguageTypeScriptApache License 2.0Apache-2.0

TypeScript patterns

Programming patterns, JavaScript features, and TypeScript examples.

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

Scripts

Use the following scripts to work with the examples in src:

  • npm install: Install dependencies.
  • npm run test: Run the tests.
  • npx jest -t '<TestName>': Run a single test, e.g. npx jest -t 'regex'
  • npm run build: Tests, compiles, and lints the source code. Run this before pushing a change.

Examples

The projects in the examples directory are standalone packages with their own package.json files. See their respective README files for details on running these projects: