mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
feat(dx): Improve hinted string types (#5286)
This commit is contained in:
parent
2011f702a3
commit
8f0d3188cd
26 changed files with 60 additions and 58 deletions
4
components/lib/dialog/Dialog.d.ts
vendored
4
components/lib/dialog/Dialog.d.ts
vendored
|
@ -10,7 +10,7 @@
|
|||
import { HTMLAttributes, TransitionProps, VNode } from 'vue';
|
||||
import { ComponentHooks } from '../basecomponent';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
import { ClassComponent, GlobalComponentConstructor, PassThrough, HintedString } from '../ts-helpers';
|
||||
|
||||
export declare type DialogPassThroughOptionType<T = any> = DialogPassThroughAttributes | ((options: DialogPassThroughMethodOptions<T>) => DialogPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -259,7 +259,7 @@ export interface DialogProps {
|
|||
* A valid query selector or an HTMLElement to specify where the dialog gets attached.
|
||||
* @defaultValue body
|
||||
*/
|
||||
appendTo?: 'body' | 'self' | string | undefined | HTMLElement;
|
||||
appendTo?: HintedString<'body' | 'self'> | undefined | HTMLElement;
|
||||
/**
|
||||
* Style of the dynamic dialog.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue