Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/postcss/lib/container.d.ts
rd565449 r0c6b92a 21 21 * An array of property names. 22 22 */ 23 props?: string[]23 props?: readonly string[] 24 24 } 25 25 26 26 export interface ContainerProps extends NodeProps { 27 nodes?: (ChildNode | ChildProps)[]27 nodes?: readonly (ChildProps | Node)[] 28 28 } 29 30 /** 31 * All types that can be passed into container methods to create or add a new 32 * child node. 33 */ 34 export type NewChild = 35 | ChildProps 36 | Node 37 | readonly ChildProps[] 38 | readonly Node[] 39 | readonly string[] 40 | string 41 | undefined 29 42 30 43 // eslint-disable-next-line @typescript-eslint/no-use-before-define … … 53 66 54 67 /** 68 * An internal method that converts a {@link NewChild} into a list of actual 69 * child nodes that can then be added to this container. 70 * 71 * This ensures that the nodes' parent is set to this container, that they use 72 * the correct prototype chain, and that they're marked as dirty. 73 * 74 * @param mnodes The new node or nodes to add. 75 * @param sample A node from whose raws the new node's `before` raw should be 76 * taken. 77 * @param type This should be set to `'prepend'` if the new nodes will be 78 * inserted at the beginning of the container. 79 * @hidden 80 */ 81 protected normalize( 82 nodes: Container.NewChild, 83 sample: Node | undefined, 84 type?: 'prepend' | false 85 ): Child[] 86 87 /** 55 88 * Inserts new nodes to the end of the container. 56 89 * … … 72 105 * @return This node for methods chain. 73 106 */ 74 append( 75 ...nodes: ( 76 | ChildProps 77 | ChildProps[] 78 | Node 79 | Node[] 80 | string 81 | string[] 82 | undefined 83 )[] 84 ): this 85 107 append(...nodes: Container.NewChild[]): this 86 108 assign(overrides: Container.ContainerProps | object): this 87 clone(overrides?: Partial<Container.ContainerProps>): Container<Child> 88 cloneAfter(overrides?: Partial<Container.ContainerProps>): Container<Child> 89 cloneBefore(overrides?: Partial<Container.ContainerProps>): Container<Child> 109 clone(overrides?: Partial<Container.ContainerProps>): this 110 cloneAfter(overrides?: Partial<Container.ContainerProps>): this 111 112 cloneBefore(overrides?: Partial<Container.ContainerProps>): this 90 113 91 114 /** … … 125 148 callback: (node: Child, index: number) => false | void 126 149 ): false | undefined 127 128 150 /** 129 151 * Returns `true` if callback returns `true` … … 140 162 condition: (node: Child, index: number, nodes: Child[]) => boolean 141 163 ): boolean 164 142 165 /** 143 166 * Returns a `child`’s index within the `Container#nodes` array. … … 151 174 */ 152 175 index(child: Child | number): number 153 154 176 /** 155 177 * Insert new node after old node within the container. … … 159 181 * @return This node for methods chain. 160 182 */ 161 insertAfter( 162 oldNode: Child | number, 163 newNode: 164 | Child 165 | Child[] 166 | ChildProps 167 | ChildProps[] 168 | string 169 | string[] 170 | undefined 171 ): this 183 insertAfter(oldNode: Child | number, newNode: Container.NewChild): this 184 172 185 /** 173 186 * Insert new node before old node within the container. … … 181 194 * @return This node for methods chain. 182 195 */ 183 insertBefore( 184 oldNode: Child | number, 185 newNode: 186 | Child 187 | Child[] 188 | ChildProps 189 | ChildProps[] 190 | string 191 | string[] 192 | undefined 193 ): this 196 insertBefore(oldNode: Child | number, newNode: Container.NewChild): this 194 197 195 198 /** … … 230 233 * @return This node for methods chain. 231 234 */ 232 prepend( 233 ...nodes: ( 234 | ChildProps 235 | ChildProps[] 236 | Node 237 | Node[] 238 | string 239 | string[] 240 | undefined 241 )[] 242 ): this 235 prepend(...nodes: Container.NewChild[]): this 243 236 /** 244 237 * Add child to the end of the node. … … 302 295 * 303 296 * @param pattern Replace pattern. 304 * @param {object} opt sOptions to speed up the search.305 * @param callbackString to replace pattern or callback297 * @param {object} options Options to speed up the search. 298 * @param replaced String to replace pattern or callback 306 299 * that returns a new value. The callback 307 300 * will receive the same arguments
Note:
See TracChangeset
for help on using the changeset viewer.