mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix test: compiler now infers type of a parameter, so we must give it a more specific type
This commit is contained in:
parent
d7f4aff454
commit
07c19aba77
@ -1195,7 +1195,7 @@ namespace CSR {
|
||||
computedValue(targetField: string, transform: (...values: string[]) => string, ...sourceField: string[]): ICSR {
|
||||
var dependentValues: { [field: string]: string } = {};
|
||||
|
||||
return this.onPostRenderField(targetField, (schema, ctx: SPClientTemplates.RenderContext_FieldInForm) => {
|
||||
return this.onPostRenderField(targetField, (schema: SPClientTemplates.FieldSchema_InForm, ctx: SPClientTemplates.RenderContext_FieldInForm) => {
|
||||
if (ctx.ControlMode == SPClientTemplates.ClientControlMode.EditForm
|
||||
|| ctx.ControlMode == SPClientTemplates.ClientControlMode.NewForm) {
|
||||
var targetControl = CSR.getControl(schema);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user