CacheControl / CacheControl/json-rules-engine
Rule Ts incorrect
- Linguagem predominante
- JavaScript
- Estrelas
- 3.1k
- Forks
- 507
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
The `rule.js` recently refactored the `rule.event` property to `rule.ruleEvent` (80e84b3ada7df7fca20aba21e37d8b5ee4257023) but there were no corresponding updates to the types when using the types accessing the property directly does not work as expected.
Should the type use `rule.ruleEvent` or should it use accessors for the event?
js & ts are not my speciality but i think the 'event' property of the interface needs to have a `get function` & `set function` that are actually the `getEvent` and `setEvent` functions.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Comece inspecionando rule.js e as definições de tipo que expõem a propriedade rule.event. Compare a propriedade refatorada rule.ruleEvent com os accessors getEvent e setEvent mencionados na issue e, em seguida, verifique qual forma permite o acesso direto à propriedade por meio dos tipos. Está concluído quando os tipos correspondem ao comportamento em runtime e o acesso direto funciona conforme esperado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript, typescript
- Domínio
- backend
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100