Allow extra properties in when calling createTag.

This commit is contained in:
Daniel Rosenwasser 2020-09-01 23:58:24 -07:00 committed by GitHub
parent 812083b9ec
commit a9d7874562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ export interface Options<Result = DataFormat | GroupedDataFormat, RemoteResult =
width?: string;
// Not in https://select2.org/configuration/options-api
createTag?: (params: SearchOptions) => IdTextPair | null;
createTag?: (params: SearchOptions) => (IdTextPair & Record<string, any>) | null;
insertTag?: (data: Array<OptionData | IdTextPair>, tag: IdTextPair) => void;
}