From d01bb09b8679c0fde321c91a61b0efa0bd2cfded Mon Sep 17 00:00:00 2001 From: higuri Date: Sun, 23 Sep 2018 23:27:06 +0900 Subject: [PATCH] Import type from xmlbuilder --- types/plist/index.d.ts | 7 +++---- types/plist/plist-tests.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) 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