From 445ac10af99fdf647387335e4e21842325930e12 Mon Sep 17 00:00:00 2001 From: Daniel Rentz Date: Thu, 23 Feb 2023 08:33:29 +0100 Subject: [PATCH] Update pofile.d.ts As can be verified in source code, the properties `Item#msgctxt` and `Item#msgid_plural` will be initialized to `null` instead of `undefined` (https://github.com/rubenv/pofile/blob/master/lib/po.js#L279-L281). However, type `undefined` should remain to not break any existing code. --- pofile.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pofile.d.ts b/pofile.d.ts index 56702c1..5b022c0 100644 --- a/pofile.d.ts +++ b/pofile.d.ts @@ -14,9 +14,9 @@ declare interface IHeaders { declare class Item { public msgid: string; - public msgctxt?: string; + public msgctxt?: string | null | undefined; public references: string[]; - public msgid_plural?: string; + public msgid_plural?: string | null | undefined; public msgstr: string[]; public comments: string[]; public extractedComments: string[];