mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-15 18:14:28 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user