K
K
Klein Maximus2017-09-06 09:20:40
Angular
Klein Maximus, 2017-09-06 09:20:40

What does the construction mean when there is a type in angle brackets after the expression?

If the angle brackets are before the expression, then this is a type conversion, and if after , then how should this be regarded?

interface ActivatedRoute { 
  snapshot: ActivatedRouteSnapshot
  url: Observable<UrlSegment[]>
  params: Observable<Params>
  queryParams: Observable<Params>
  fragment: Observable<string>
  data: Observable<Data>
  outlet: string
  component: Type<any>|string|null
  get routeConfig(): Route|null
  get root(): ActivatedRoute
  get parent(): ActivatedRoute|null
  get firstChild(): ActivatedRoute|null
  get children(): ActivatedRoute[]
  get pathFromRoot(): ActivatedRoute[]
  get paramMap(): Observable<ParamMap>
  get queryParamMap(): Observable<ParamMap>
  toString(): string
}

I just can’t find the necessary information in the TypeScript description :(
Preferably in Russian.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2017-09-06
@kleinmaximus

https://www.typescriptlang.org/docs/handbook/gene...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question