mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Import type from xmlbuilder
This commit is contained in:
7
types/plist/index.d.ts
vendored
7
types/plist/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as fs from "fs";
|
||||
import plist = require("plist");
|
||||
import * as plist from "plist";
|
||||
|
||||
///
|
||||
/// Typing for test
|
||||
|
||||
Reference in New Issue
Block a user