ts-types-esm: Model.createBindingContext returns Context|undefined

Aberta
#335 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
typescript
Domínio
tooling

Direção de pesquisa

Start by locating the TypeScript declaration and implementation for Model.createBindingContext, then trace how it calls resolve and handles a missing parent context. Compare the declared return type with the null or undefined behavior described in the issue. Done means the intended behavior and nullability are made consistent, with relevant tests updated or added if the project has coverage for this API.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

UI5 code issue (not TS related)

This is not so much a jsdoc error as a weird / stupid behavior (imo)

createBindingContext can apparently return in some case undefined (technically null based on the implementation) however when writing code this will never happen except when you do some weird thing.

It implies that resolve returns undefined (which btw is not in the signature) which would only happen if you have a relative binding without a parent context defined...

So ok it could happen but you'd be really looking for trouble writing such code :)
I wonder if it really makes sense to return undefined at all or if you should have an unresolveable context of some kind in there somewhere.

Linguagem predominante
TypeScript
Estrelas
213
Forks
35
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de UI5/typescript

Todas as issues de UI5/typescript

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.