You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(regressions) Property 'something' does not exist on type '{}' and Types of parameters 'field' and 'value' are incompatible #18941
Many things broke (on unchanged code) when using lodash type definitions with latest nightly. The inferring is kinda broken (and it's not allowing parameters to be overloaded)
[].forEach((field: keyofData.AddressDataSetMixin)=>{//.../*[ts]Argument of type '(field: "number" | "id" | "name" | "date" | "type" | "street" | "full" | "picture" | "cadastrador...' is not assignable to parameter of type '(value: string, index: number, array: string[]) => void'. Types of parameters 'field' and 'value' are incompatible. Type 'string' is not assignable to type '"number" | "id" | "name" | "date" | "type" | "street" | "full" | "picture" | "cadastrador" | "las...'. */})//..._.reduce(citizens,(name,citizen)=>{/*Argument of type '(name: string, citizen: RemoteArrayProxy<CitizenDataSet>) => string | undefined' is not assignable to parameter of type 'MemoIterator<RemoteArrayProxy<CitizenDataSet>, string | undefined>'. Types of parameters 'name' and 'prev' are incompatible. Type 'string | undefined' is not assignable to type 'string'. Type 'undefined' is not assignable to type 'string'.'*/if(citizen.address&&citizen.address.id===address.id){returncitizen.name}return''},'')// ...constfindBase=(field: string)=>{/* Property 'field' does not exist on type '{}' */return_.find(definitions,(def)=>def.field===field)!.id}
Activity
pocesar commentedon Oct 4, 2017
yes, it works