platform/policy/plist
Classes
Section titled “Classes”PlistError
Section titled “PlistError”Defined in: app/src/platform/policy/plist.ts:12
Thrown for malformed property lists.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PlistError(
message?):PlistError
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1080
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new PlistError(
message?,options?):PlistError
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1080
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Properties
Section titled “Properties”
readonlyname:"PlistError"='PlistError'
Defined in: app/src/platform/policy/plist.ts:13
Overrides
Section titled “Overrides”Error.name
Type Aliases
Section titled “Type Aliases”PlistValue
Section titled “PlistValue”PlistValue =
string|number|boolean|Date|Uint8Array| readonlyPlistValue[] | {[key:string]:PlistValue; }
Defined in: app/src/platform/policy/plist.ts:2
A value of an XML property list.
Functions
Section titled “Functions”parsePlist()
Section titled “parsePlist()”parsePlist(
xml):PlistValue
Defined in: app/src/platform/policy/plist.ts:23
Parses an XML property list, as produced by plutil -convert xml1. Supports dict,
array, string, integer, real, true, false, date and data.
Parameters
Section titled “Parameters”string
The document.
Returns
Section titled “Returns”The root value.
Throws
Section titled “Throws”PlistError when the document is malformed.