Added missing write signature

This is also consistent with the doc comments already there.
This commit is contained in:
Basarat Ali Syed
2014-03-16 00:03:28 +11:00
parent 2e5ad83aee
commit 1693c24110
+2 -1
View File
@@ -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.