Fix test: compiler now infers type of a parameter, so we must give it a more specific type

This commit is contained in:
Andy Hanson 2016-10-19 13:50:23 -07:00
parent d7f4aff454
commit 07c19aba77

View File

@ -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);