Prior to this change, we depended on the `@types/react` version being pulled in implicitly. This results in the version depending on the set of other dependencies and can change through a dependency update. In order to avoid this, this change is now adding an explicit dependency to it, pinning it to the most recent `17.x` version. Although we are on `16.x`, this is the version which matches our expected typings the most.
* Writing swagger definition from maven run.
* Adding parameters to API generator.
* Generate API files.
* Write overview as well.
* Using classgraph.
* Adding first attempt to generate TS signatures from swagger defs.
* Starting to generate function stubs.
* Starting from api summary to generate defs.
* Cleanup, writing to files, using correct default path.
* Adding accept header information to `request` call.
* Adding import statement.
* Adding `request` stub.
* Moving swagger spec generation out of web profile.
* Generate single-quote string literals.
* Creating proper template string for routes.
* Rename conflicting overloaded function names.
* Map banned function names.
* Generate enum types as union types.
* Ordering function parameters by optionality.
* Supporting enum operation parameters.
* Using single quotes for string literals as paths.
* Support type aliases for named array types.
* Fixing up `Optional`s.
* Avoid generating banned models.
* Cleaning parameter names before usage.
* Generating `any` for `Response`, mapping `any` to `unknown`.
* Mapping more types, handling optional types better.
* Adding indexer signature if additional properties are present.
* Using variable name from `PathParam` annotation for parameter name if present.
* Properly handle inline object types.
* Map inline object models.
* Fixing some type issues.
* Removing type.
* Generate api package index.
* Quoting prop names if needed, making more props readonly.
* Wrap additional properties if they contain type literal.
* Fix boolean default values, ban more types, quote prop names starting with @.
* Handling optionals better.
* Adding task to generate api typedefs.
* Merge default value into allowed values for enum.
* Better merging of default values into enum, handling `long` types.
* Turning `request` into `__request__` to avoid clashes.
* Removing `Type` from banned models.
* Making script work with `ts-node`.
* Dissected frontend typing generator script into parser |> emitter.
* Adding tests.
* Fixing enum parsing.
* Adding/updating tests.
* Generating api specs through yarn task.
* Adding `@graylog/server-api` alias.
* Moving generator test to better place.
* Cleaning up `Generator`.
* Adding license headers.
* Assigning correct phases to frontend goals.
* Removing shebang from generator script.
* Extract types from `response` parameter of `ApiOperation` annotation.
* Suppressing `no-console` errors for scripts.
* Fixing linter hints.
* Using idempotent target directory specification.
* Handling arrays without any type definition.
* Using correct phases for types generation.
* Removing target directory before.
* Using unknown type as const.
* Fixing `request` helper.
* Fix including web assets in production jar.
* Improving maven phases, ordering execution through order in pom.
* Writing swagger definition from maven run.
* Adding parameters to API generator.
* Generate API files.
* Write overview as well.
* Using classgraph.
* Adding first attempt to generate TS signatures from swagger defs.
* Starting to generate function stubs.
* Starting from api summary to generate defs.
* Cleanup, writing to files, using correct default path.
* Adding accept header information to `request` call.
* Adding import statement.
* Adding `request` stub.
* Moving swagger spec generation out of web profile.
* Generate single-quote string literals.
* Creating proper template string for routes.
* Rename conflicting overloaded function names.
* Map banned function names.
* Generate enum types as union types.
* Ordering function parameters by optionality.
* Supporting enum operation parameters.
* Using single quotes for string literals as paths.
* Support type aliases for named array types.
* Fixing up `Optional`s.
* Avoid generating banned models.
* Cleaning parameter names before usage.
* Generating `any` for `Response`, mapping `any` to `unknown`.
* Mapping more types, handling optional types better.
* Adding indexer signature if additional properties are present.
* Using variable name from `PathParam` annotation for parameter name if present.
* Properly handle inline object types.
* Map inline object models.
* Fixing some type issues.
* Removing type.
* Generate api package index.
* Quoting prop names if needed, making more props readonly.
* Wrap additional properties if they contain type literal.
* Fix boolean default values, ban more types, quote prop names starting with @.
* Handling optionals better.
* Adding task to generate api typedefs.
* Merge default value into allowed values for enum.
* Better merging of default values into enum, handling `long` types.
* Turning `request` into `__request__` to avoid clashes.
* Removing `Type` from banned models.
* Making script work with `ts-node`.
* Dissected frontend typing generator script into parser |> emitter.
* Adding tests.
* Fixing enum parsing.
* Adding/updating tests.
* Generating api specs through yarn task.
* Adding `@graylog/server-api` alias.
* Moving generator test to better place.
* Cleaning up `Generator`.
* Adding license headers.
* Assigning correct phases to frontend goals.
* Removing shebang from generator script.
* Extract types from `response` parameter of `ApiOperation` annotation.
* Suppressing `no-console` errors for scripts.
* Fixing linter hints.
* Using idempotent target directory specification.
* Handling arrays without any type definition.
* Using correct phases for types generation.
* Removing target directory before.
* Using unknown type as const.
* Fixing `request` helper.
* Add missing import.
* Check if value is not number and has key.
* Enabling `noImplicitThis`.
* Enable `strictBindCallApply`.
* Enable `noFallthroughCasesInSwitch` & `noImplicitReturns`.
* Enabling `noUncheckedIndexedAccess`.
* Removing unused imports/variables, enabling `noUnusedLocals`.
* Adding `@types` packages for `numeral` and `react-router`.
* Adding `react-bootstrap` types.
* Adding types for `ua-parser-js`.
* Adding types for `md5`.
* Adding types for `clipboard`.
* Adding types for `react-window`.
* Adding types for `enzyme-adapter-react-16`.
* Updating yarn lockfile due to rebase.
This change is adding the `downlevelIteration` compiler flag, which
enables us to treat objects implementing the iterator interface as
arrays. A common use case is e.g.:
```
const dedup = [...new Set(23, 42, 17, 23)];
```
* Fix the way TypeScript loads type definitions.
Before this change, ts-loader/tsc just included the node types
explicitly. This lead to problems with duplicate inclusions for plugins
which transitively depend on typings.
This PR changes this behavior to the more standard one of defining which
types to include instead of including the types file explicitly.
* Removing explicit inclusion of node type, leaving that to consumers.
With this change, the node type is not explicitly included in ts. It is
left to the components using node functions to include them. This allows
us to make it work for:
a) compilations of projects with @types/node installed
b) compilations of projects without @types/node.
For the latter, the inclusion of a reference path for the `WidgetsStore`
with a relative reference allows the compiler to find the @types/node
package of the graylog2-web-interface module.
* Removing all type inclusion per default.
* Updating web dependencies.
* Removing old typescript declarations.
* Removing now unused ecmaFeatures from ESLint config.
* Adding typings for globally available node functions.
* Explicitly including ts files (implicitly including others) and node definitions.
* Updating vendor module ids.