UNPKG

873 BSource Map (JSON)View Raw
1{"version":3,"file":"boolean-property.js","sourceRoot":"","sources":["../../../../src/focus-trap/boolean-property.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,oEAAoE;AACpE,MAAM,UAAU,qBAAqB,CAAC,KAAU;IAC9C,OAAO,KAAK,IAAI,IAAI,IAAI,GAAG,KAAK,EAAE,KAAK,OAAO,CAAC;AACjD,CAAC","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/* eslint-disable */\n\n/**\n * Type describing the allowed values for a boolean input.\n * @docs-private\n */\nexport type BooleanInput = string | boolean | null | undefined;\n\n/** Coerces a data-bound value (typically a string) to a boolean. */\nexport function coerceBooleanProperty(value: any): boolean {\n return value != null && `${value}` !== 'false';\n}\n"]}
\No newline at end of file