From 1693c24110c906904a0514dc6fd6344a0c8b8356 Mon Sep 17 00:00:00 2001 From: Basarat Ali Syed Date: Sun, 16 Mar 2014 00:03:28 +1100 Subject: [PATCH] Added missing write signature This is also consistent with the doc comments already there. --- gruntjs/gruntjs.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gruntjs/gruntjs.d.ts b/gruntjs/gruntjs.d.ts index 94ec7b533..f646bcbf2 100644 --- a/gruntjs/gruntjs.d.ts +++ b/gruntjs/gruntjs.d.ts @@ -393,7 +393,8 @@ declare module grunt { * @param contents If `contents` is a Buffer, encoding is ignored. * @param options If an encoding is not specified, default to grunt.file.defaultEncoding. */ - write(filepath: string, contents: NodeBuffer, options?: IFileEncodedOption): void + write(filepath: string, contents: string, options?: IFileEncodedOption): void + write(filepath: string, contents: NodeBuffer): void /** * Copy a source file to a destination path, creating intermediate directories if necessary.