add()
add(item, placement?): Promise<{
items: (
| `project:${string}`
| `customer:${string}`
| `product:${string}`
| `subscription:${string}`
| `account:${string}`
| `subscription-relay:${string}`
| `transaction:${string}`)[];
}>;Adding an item that is already starred moves it only when a placement is given.
Parameters
item
| `project:${string}`
| `customer:${string}`
| `product:${string}`
| `subscription:${string}`
| `account:${string}`
| `subscription-relay:${string}`
| `transaction:${string}`
placement?
| {
position: "first" | "last";
}
| {
anchor: | `project:${string}`
| `customer:${string}`
| `product:${string}`
| `subscription:${string}`
| `account:${string}`
| `subscription-relay:${string}`
| `transaction:${string}`;
position: "above" | "below";
}
Last updated on