Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/postcss/lib/container.d.ts

    rd565449 r0c6b92a  
    2121     * An array of property names.
    2222     */
    23     props?: string[]
     23    props?: readonly string[]
    2424  }
    2525
    2626  export interface ContainerProps extends NodeProps {
    27     nodes?: (ChildNode | ChildProps)[]
     27    nodes?: readonly (ChildProps | Node)[]
    2828  }
     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
    2942
    3043  // eslint-disable-next-line @typescript-eslint/no-use-before-define
     
    5366
    5467  /**
     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  /**
    5588   * Inserts new nodes to the end of the container.
    5689   *
     
    72105   * @return This node for methods chain.
    73106   */
    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
    86108  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
    90113
    91114  /**
     
    125148    callback: (node: Child, index: number) => false | void
    126149  ): false | undefined
    127 
    128150  /**
    129151   * Returns `true` if callback returns `true`
     
    140162    condition: (node: Child, index: number, nodes: Child[]) => boolean
    141163  ): boolean
     164
    142165  /**
    143166   * Returns a `child`’s index within the `Container#nodes` array.
     
    151174   */
    152175  index(child: Child | number): number
    153 
    154176  /**
    155177   * Insert new node after old node within the container.
     
    159181   * @return This node for methods chain.
    160182   */
    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
    172185  /**
    173186   * Insert new node before old node within the container.
     
    181194   * @return This node for methods chain.
    182195   */
    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
    194197
    195198  /**
     
    230233   * @return This node for methods chain.
    231234   */
    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
    243236  /**
    244237   * Add child to the end of the node.
     
    302295   *
    303296   * @param pattern      Replace pattern.
    304    * @param {object} opts                Options to speed up the search.
    305    * @param callback   String to replace pattern or callback
     297   * @param {object} options             Options to speed up the search.
     298   * @param replaced   String to replace pattern or callback
    306299   *                                     that returns a new value. The callback
    307300   *                                     will receive the same arguments
Note: See TracChangeset for help on using the changeset viewer.