For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface ViewTransitionTypeSet
interface ViewTransitionTypeSet {
"[toStringTag]": string;
size: number;
"[iterator]"(): SetIterator<string>;
add(value: string): this;
clear(): void;
delete(value: string): boolean;
entries(): SetIterator<[string, string]>;
forEach(
callbackfn: (
value: string,
key: string,
parent: ViewTransitionTypeSet,
) => void,
thisArg?: any,
): void;
has(value: string): boolean;
keys(): SetIterator<string>;
values(): SetIterator<string>;
}
"[toStringTag]": string;
size: number;
"[iterator]"(): SetIterator<string>;
add(value: string): this;
clear(): void;
delete(value: string): boolean;
entries(): SetIterator<[string, string]>;
forEach(
callbackfn: (
value: string,
key: string,
parent: ViewTransitionTypeSet,
) => void,
thisArg?: any,
): void;
has(value: string): boolean;
keys(): SetIterator<string>;
values(): SetIterator<string>;
}
Hierarchy
- Set<string>
- ViewTransitionTypeSet
Methods
[iterator]
-
Iterates over values in the set.
Returns SetIterator<string>
add
-
Appends a new element with a specified value to the end of the Set.
Parameters
- value: string
Returns this
clear
-
Removes all elements from the Set.
Returns void
delete
-
Removes a specified value from the Set.
Parameters
- value: string
Returns boolean
Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
entries
-
Returns an iterable of [v,v] pairs for every value
vin the set.Returns SetIterator<[string, string]>
forEach
-
forEach(
callbackfn: (
value: string,
key: string,
parent: ViewTransitionTypeSet,
) => void,
thisArg?: any,
): voidParameters
- callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void
OptionalthisArg: any
Returns void
has
-
Parameters
- value: string
Returns boolean
a boolean indicating whether an element with the specified value exists in the Set or not.
keys
-
Despite its name, returns an iterable of the values in the set.
Returns SetIterator<string>
values
-
Returns an iterable of values in the set.
Returns SetIterator<string>
The
ViewTransitionTypeSetinterface of the View Transition API is a set-like object representing the types of an active view transition. This enables the types to be queried or modified on-the-fly during a transition.MDN Reference