Skip to content

flatten

reference
1 min readUpdated

Kind: Function

Source: packages/common/decorators/core/dependencies.decorator.ts

Part of: Common

Signature

ts
function flatten(arr: T): T extends Array<infer R> ? R : never

Parameters

NameType
arrT

Returns: T extends Array<infer R> ? R : never

Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (2)

  • RoutePathFactorypackages/core/router/route-path-factory.ts:18
  • FilterByIncludepackages/core/discovery/discovery-service.ts:16

Was this page helpful?

Download as PDF
flatten — NestJS head-to-head