commit | 4a435a90a39174d0168a01e6301a11a24ad711c7 | [log] [tgz] |
---|---|---|
author | TypeScript Team <noreply@google.com> | Wed Jan 22 02:13:36 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Jan 22 02:13:54 2020 -0800 |
tree | 3765b019922a77beb84c437bc9798f89a95cf3ca | |
parent | 94f030037d8ae16f854231fb36ce768e65de1eab [diff] |
Adds a tsetse rule to prevent constructing Sets using a string. Disallows `new Set('abc')` since that results in a Set containing 'a', 'b' and 'c'. - If that really is the intention of the code, it can be converted to `new Set('abc' as Iterable<string>)` - If the intention was to have a Set containing 'abc', it should be `new Set(['abc'])` PiperOrigin-RevId: 290914197
This repo contains a mirror of some Google-internal bits that support TypeScript development under Bazel.
It contains these utilities:
ts_devserver
: a Go library and binary that runs a fast local web server which concatenates JavaScript on-the-fly. It requires inputs in a named module format (module ids must be contained in the file, not inferred from the file's path).tsc_wrapped
: a TypeScript program which wraps the TypeScript compiler, hosting it under a Bazel worker.tsetse
: a collection of third-party “strictness” checks which we add to the TypeScript compiler.internal/common/*.bzl
: some Starlark utility code for running the ts_library
rule.There are no user-facing bits in this repo. These utilities are consumed in https://github.com/bazelbuild/rules_nodejs/tree/master/packages/typescript
Please file issues for ts_library
rule and other Bazel rules in that repo.