1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["20259"],{25411(e,r,n){n.r(r),n.d(r,{metadata:()=>s,default:()=>h,frontMatter:()=>i,contentTitle:()=>l,toc:()=>d,assets:()=>c});var s=JSON.parse('{"id":"api/type-aliases/UniqueArrayConstraintsCustomCompareSelect","title":"Type Alias: UniqueArrayConstraintsCustomCompareSelect\\\\<T, U\\\\>","description":"UniqueArrayConstraintsCustomCompareSelect\\\\ = UniqueArraySharedConstraints & object","source":"@site/docs/api/type-aliases/UniqueArrayConstraintsCustomCompareSelect.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/UniqueArrayConstraintsCustomCompareSelect","permalink":"/docs/api/type-aliases/UniqueArrayConstraintsCustomCompareSelect","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedBy":null,"lastUpdatedAt":null,"frontMatter":{"mdx":{"format":"md"}},"sidebar":"tutorialSidebar","previous":{"title":"Type Alias: UniqueArrayConstraintsCustomCompare\\\\<T\\\\>","permalink":"/docs/api/type-aliases/UniqueArrayConstraintsCustomCompare"},"next":{"title":"Type Alias: UniqueArrayConstraintsRecommended\\\\<T, U\\\\>","permalink":"/docs/api/type-aliases/UniqueArrayConstraintsRecommended"}}'),t=n(61058),a=n(24801);let i={mdx:{format:"md"}},l="Type Alias: UniqueArrayConstraintsCustomCompareSelect<T, U>",c={},d=[{value:"Type Declaration",id:"type-declaration",level:2},{value:"comparator",id:"comparator",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Remarks",id:"remarks",level:4},{value:"selector",id:"selector",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Remarks",id:"remarks-1",level:4},{value:"Type Parameters",id:"type-parameters",level:2},{value:"Remarks",id:"remarks-2",level:2}];function o(e){let r={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.header,{children:(0,t.jsx)(r.h1,{id:"type-alias-uniquearrayconstraintscustomcompareselectt-u",children:"Type Alias: UniqueArrayConstraintsCustomCompareSelect<T, U>"})}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.strong,{children:"UniqueArrayConstraintsCustomCompareSelect"}),"<",(0,t.jsx)(r.code,{children:"T"}),", ",(0,t.jsx)(r.code,{children:"U"}),"> = ",(0,t.jsx)(r.a,{href:"/docs/api/type-aliases/UniqueArraySharedConstraints",children:(0,t.jsx)(r.code,{children:"UniqueArraySharedConstraints"})})," & ",(0,t.jsx)(r.code,{children:"object"})]}),"\n"]}),"\n",(0,t.jsxs)(r.p,{children:["Defined in: ",(0,t.jsx)(r.a,{href:"https://github.com/dubzzz/fast-check/blob/014cc87e29e807fd7028e4cc05d8a6cd12da172b/packages/fast-check/src/arbitrary/uniqueArray.ts#L143",children:"packages/fast-check/src/arbitrary/uniqueArray.ts:143"})]}),"\n",(0,t.jsxs)(r.p,{children:["Constraints implying fully custom comparison function and selector\nto be applied on ",(0,t.jsx)(r.a,{href:"/docs/api/functions/uniqueArray",children:"uniqueArray"})]}),"\n",(0,t.jsx)(r.p,{children:"WARNING - Imply an extra performance cost whenever you want to generate large arrays"}),"\n",(0,t.jsx)(r.h2,{id:"type-declaration",children:"Type Declaration"}),"\n",(0,t.jsx)(r.h3,{id:"comparator",children:"comparator"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.strong,{children:"comparator"}),": (",(0,t.jsx)(r.code,{children:"a"}),", ",(0,t.jsx)(r.code,{children:"b"}),") => ",(0,t.jsx)(r.code,{children:"boolean"})]}),"\n"]}),"\n",(0,t.jsx)(r.p,{children:"The operator to be used to compare the values after having applied the selector (if any)"}),"\n",(0,t.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Parameter"}),(0,t.jsx)(r.th,{children:"Type"})]})}),(0,t.jsxs)(r.tbody,{children:[(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"a"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"U"})})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"b"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"U"})})]})]})]}),"\n",(0,t.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"boolean"})}),"\n",(0,t.jsx)(r.h4,{id:"remarks",children:"Remarks"}),"\n",(0,t.jsx)(r.p,{children:"Since 2.23.0"}),"\n",(0,t.jsx)(r.h3,{id:"selector",children:"selector"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.strong,{children:"selector"}),": (",(0,t.jsx)(r.code,{children:"v"}),") => ",(0,t.jsx)(r.code,{children:"U"})]}),"\n"]}),"\n",(0,t.jsx)(r.p,{children:"How we should project the values before comparing them together"}),"\n",(0,t.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Parameter"}),(0,t.jsx)(r.th,{children:"Type"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"v"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"T"})})]})})]}),"\n",(0,t.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.code,{children:"U"})}),"\n",(0,t.jsx)(r.h4,{id:"remarks-1",children:"Remarks"}),"\n",(0,t.jsx)(r.p,{children:"Since 2.23.0"}),"\n",(0,t.jsx)(r.h2,{id:"type-parameters",children:"Type Parameters"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsx)(r.tr,{children:(0,t.jsx)(r.th,{children:"Type Parameter"})})}),(0,t.jsxs)(r.tbody,{children:[(0,t.jsx)(r.tr,{children:(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"T"})})}),(0,t.jsx)(r.tr,{children:(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"U"})})})]})]}),"\n",(0,t.jsx)(r.h2,{id:"remarks-2",children:"Remarks"}),"\n",(0,t.jsx)(r.p,{children:"Since 2.23.0"})]})}function h(e={}){let{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(o,{...e})}):o(e)}},24801(e,r,n){n.d(r,{R:()=>i,x:()=>l});var s=n(13706);let t={},a=s.createContext(t);function i(e){let r=s.useContext(a);return s.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),s.createElement(a.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.