refactor(core): rename ngPipeDef to ɵpipe (#33142)
Pipe defs are not considered public API, so the property that contains them should be prefixed with Angular's marker for "private" ('ɵ') to discourage apps from relying on def APIs directly. This commit adds the prefix and shortens the name from ngPipeDef to pipe. This is because property names cannot be minified by Uglify without turning on property mangling (which most apps have turned off) and are thus size-sensitive. PR Close #33142
This commit is contained in:

committed by
Miško Hevery

parent
f433d6604b
commit
d62eff7316
@ -88,10 +88,10 @@ export enum DirectiveDefFlags {
|
||||
}
|
||||
|
||||
/**
|
||||
* A subclass of `Type` which has a static `ngPipeDef`:`PipeDef` field making it
|
||||
* A subclass of `Type` which has a static `ɵpipe`:`PipeDef` field making it
|
||||
* consumable for rendering.
|
||||
*/
|
||||
export interface PipeType<T> extends Type<T> { ngPipeDef: never; }
|
||||
export interface PipeType<T> extends Type<T> { ɵpipe: never; }
|
||||
|
||||
/**
|
||||
* @codeGenApi
|
||||
|
Reference in New Issue
Block a user