diff --git a/types/plist/index.d.ts b/types/plist/index.d.ts index def21edb10..b7064e55a3 100644 --- a/types/plist/index.d.ts +++ b/types/plist/index.d.ts @@ -5,6 +5,7 @@ // TypeScript Version: 2.2 /// +import { XMLToStringOptions } from 'xmlbuilder'; // plist export as namespace plist; @@ -24,7 +25,5 @@ export interface PlistObject { export interface PlistArray extends Array { } // PlistBuildOptions -// The instance of this type is passed to 'xmlbuilder' module as it is. -// So we want to import this type from '@types/xmlbuilder', -// but the type is not declared there... -export type PlistBuildOptions = object; +// The instance of this type is passed to 'xmlbuilder' module as it is. +export type PlistBuildOptions = XMLToStringOptions; diff --git a/types/plist/plist-tests.ts b/types/plist/plist-tests.ts index deaa0f9d50..a94cb4cf71 100644 --- a/types/plist/plist-tests.ts +++ b/types/plist/plist-tests.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import plist = require("plist"); +import * as plist from "plist"; /// /// Typing for test