Import type from xmlbuilder

This commit is contained in:
higuri
2018-09-23 23:27:06 +09:00
parent 63bd337091
commit d01bb09b86
2 changed files with 4 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
// TypeScript Version: 2.2
/// <reference types="node" />
import { XMLToStringOptions } from 'xmlbuilder';
// plist
export as namespace plist;
@@ -24,7 +25,5 @@ export interface PlistObject {
export interface PlistArray extends Array<PlistValue> { }
// 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;

View File

@@ -1,5 +1,5 @@
import * as fs from "fs";
import plist = require("plist");
import * as plist from "plist";
///
/// Typing for test