{"version":3,"file":"ngxtension-filter-nil.mjs","sources":["../../../../libs/ngxtension/filter-nil/src/filter-nil.ts","../../../../libs/ngxtension/filter-nil/src/ngxtension-filter-nil.ts"],"sourcesContent":["import { filter } from 'rxjs';\n\n// TypeScript's built-in `NonNullable` doesn't distribute properly over generic type parameters\n// in type predicate contexts, causing the type guard to fail. This custom conditional type\n// forces distribution by being evaluated directly in the generic context.\ntype NotNullable<T> = T extends null | undefined ? never : T;\n\nexport const filterNil = <T>() =>\n\tfilter(\n\t\t(value: T): value is NotNullable<T> =>\n\t\t\tvalue !== undefined && value !== null,\n\t);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAOa,SAAS,GAAG,MACxB,MAAM,CACL,CAAC,KAAQ,KACR,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;;ACVxC;;AAEG;;;;"}