type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
pkg => {
const importSpecifier = getImportSpecifierName(
j,
source,
pkg,
'@atlaskit/menu',
);
if (importSpecifier != null) {
updateCssFnProp(j, source, importSpecifier);
}
} | AlexRogalskiy/CodeshiftCommunity | community/@atlaskit__menu/0.7.0/transform.ts | TypeScript |
ArrowFunction |
(files: File[]) => (_: any, headers: Headers) => {
// Allow the browser to set the content type based on the form data - manually setting to multipart mangles
// the request for some reason so lets let the browser set based on the form data.
headers.delete('Content-Type');
const formData = new FormData... | NarrativeCompany/narrative | react-ui/packages/shared/src/utils/apolloLinkRestUtils.ts | TypeScript |
ArrowFunction |
(_: any, headers: Headers) => {
// Allow the browser to set the content type based on the form data - manually setting to multipart mangles
// the request for some reason so lets let the browser set based on the form data.
headers.delete('Content-Type');
const formData = new FormData();
// Add the... | NarrativeCompany/narrative | react-ui/packages/shared/src/utils/apolloLinkRestUtils.ts | TypeScript |
ArrowFunction |
(curFile: File) => {
formData.append('file', curFile, curFile.name);
} | NarrativeCompany/narrative | react-ui/packages/shared/src/utils/apolloLinkRestUtils.ts | TypeScript |
ArrowFunction | // tslint:disable-next-line no-any
(files: File[]) => (data: KycApplicationInput, headers: Headers) => {
headers.delete('Content-Type');
const formData = new FormData();
formData.append('kycApplicantInput', JSON.stringify(data));
// Add the files
files.forEach((curFile: File) => {
// tslint:d... | NarrativeCompany/narrative | react-ui/packages/shared/src/utils/apolloLinkRestUtils.ts | TypeScript |
ArrowFunction |
(data: KycApplicationInput, headers: Headers) => {
headers.delete('Content-Type');
const formData = new FormData();
formData.append('kycApplicantInput', JSON.stringify(data));
// Add the files
files.forEach((curFile: File) => {
// tslint:disable-next-line no-string-literal
formData.app... | NarrativeCompany/narrative | react-ui/packages/shared/src/utils/apolloLinkRestUtils.ts | TypeScript |
ArrowFunction |
(curFile: File) => {
// tslint:disable-next-line no-string-literal
formData.append(curFile['uid'], curFile, curFile.name);
} | NarrativeCompany/narrative | react-ui/packages/shared/src/utils/apolloLinkRestUtils.ts | TypeScript |
ClassDeclaration |
export default class Match {
character1: CharacterAsset
character2: CharacterAsset
constructor(
character1: CharacterAsset,
character2: CharacterAsset
) {
this.character1 = character1
this.character2 = character2
}
} | djds23/wendys | src/scenes/Match.ts | TypeScript |
FunctionDeclaration |
export function ZoomOutButton(props: ToolbarButtonProps) {
const {t} = useTranslation()
const dispatch = useDispatch()
const graphGetter = useGraph()
const {disabled} = props
const available = !disabled && graphGetter()
return (
<ToolbarButton
name={t("panels.actions.view-zoomOut.label", "zoom-o... | JulianWielga/nussknacker | ui/client/components/toolbars/view/buttons/ZoomOutButton.tsx | TypeScript |
MethodDeclaration |
t("panels.actions.view-zoomOut.label", "zoom-out") | JulianWielga/nussknacker | ui/client/components/toolbars/view/buttons/ZoomOutButton.tsx | TypeScript |
ArrowFunction |
() => {
return (
<div style={{ position: "relative", width: 100, height: 100 }} | ProjektTejas/tejas-web | components/fun-stuff/fire.tsx | TypeScript |
ArrowFunction |
(content: string, name: string, mimetype: string) =>
new Promise<string>((resolve, reject) => {
const fileUpload = bucket.file(name)
const blobStream = fileUpload.createWriteStream({
metadata: {
contentType: mimetype,
},
})
blobStream.on('error', (error) => {
console.error(... | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
(resolve, reject) => {
const fileUpload = bucket.file(name)
const blobStream = fileUpload.createWriteStream({
metadata: {
contentType: mimetype,
},
})
blobStream.on('error', (error) => {
console.error(error)
reject('Something is wrong! Unable to upload at the moment.')
... | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
(error) => {
console.error(error)
reject('Something is wrong! Unable to upload at the moment.')
} | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
() => {
resolve(
`https://storage.googleapis.com/${bucket.name}/${fileUpload.name}`
)
} | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
async (req: NextApiRequest, res: NextApiResponse) => {
const { body } = req
const ref = binsRef.doc()
const filename = `${body.files[0].filename}.${body.files[0].lang.fileExtension}`
const fileUrl = await uploadBinToStorage(
body.files[0].code,
`bins/${ref.id}/${filename}`,
'text/plain'
).catch(... | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
(e) => {
console.error(e)
res.status(500).json({
message: 'An internal error ocurred',
})
} | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
async (
req: NextApiRequestWithFormData,
res: NextApiResponse
) => {
await multerAny(req, res)
// This operation expects a single file upload.
if (!req.files?.length || req.files.length > 1) {
res.status(400).json({ message: 'A .zip file expected' })
return
}
const blob: BlobCorrected = req.fil... | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
async (zipEntry) => {
if (
!zipEntry.isDirectory &&
!zipEntry.entryName.endsWith('.class') &&
!zipEntry.entryName.split('/').some((folder) => folder.startsWith('.'))
) {
const fileBuffer = zipEntry.getData()
const fileType = await FileType.fromBuffer(fileBuffer)
if (!fileTy... | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
(folder) => folder.startsWith('.') | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
(e) => {
console.error(e)
res.status(500).json({
message: 'An internal error ocurred',
})
} | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
(file) => file !== undefined | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
ArrowFunction |
async (req: NextApiRequest, res: NextApiResponse) => {
const { query } = req
const bin = await binsRef.doc(query.binId as string).get()
if (!bin.exists) {
res.status(404).json({
message: "This bin doesn't exists",
})
} else {
res.status(200).json({
...bin.data(),
timestamp: bin.da... | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
TypeAliasDeclaration |
export type NextApiRequestWithFormData = NextApiRequest & {
files: any[]
} | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
TypeAliasDeclaration |
type BlobCorrected = Blob & {
buffer: Buffer
} | JoseRenan/reviewbin | src/api/bins/binsController.ts | TypeScript |
FunctionDeclaration | // compare two token amounts with highest one coming first
function balanceComparator(balanceA?: TokenAmount, balanceB?: TokenAmount) {
if (balanceA && balanceB) {
return balanceA.greaterThan(balanceB) ? -1 : balanceA.equalTo(balanceB) ? 0 : 1
}
if (balanceA && balanceA.greaterThan('0')) {
return -1
}
... | Allswap/allswap-farm | src/components/SearchModal/sorting.ts | TypeScript |
FunctionDeclaration |
function getTokenComparator(balances: {
[tokenAddress: string]: TokenAmount | undefined
}): (tokenA: Token, tokenB: Token) => number {
return function sortTokens(tokenA: Token, tokenB: Token): number {
// -1 = a is first
// 1 = b is first
// sort by balances
const balanceA = balances[tokenA.addres... | Allswap/allswap-farm | src/components/SearchModal/sorting.ts | TypeScript |
FunctionDeclaration |
function useTokenComparator(inverted: boolean): (tokenA: Token, tokenB: Token) => number {
const balances = useAllTokenBalances()
const comparator = useMemo(() => getTokenComparator(balances ?? {}), [balances])
return useMemo(() => {
if (inverted) {
return (tokenA: Token, tokenB: Token) => comparator(t... | Allswap/allswap-farm | src/components/SearchModal/sorting.ts | TypeScript |
ArrowFunction |
() => getTokenComparator(balances ?? {}) | Allswap/allswap-farm | src/components/SearchModal/sorting.ts | TypeScript |
ArrowFunction |
() => {
if (inverted) {
return (tokenA: Token, tokenB: Token) => comparator(tokenA, tokenB) * -1
}
return comparator
} | Allswap/allswap-farm | src/components/SearchModal/sorting.ts | TypeScript |
ArrowFunction |
(tokenA: Token, tokenB: Token) => comparator(tokenA, tokenB) * -1 | Allswap/allswap-farm | src/components/SearchModal/sorting.ts | TypeScript |
ArrowFunction |
() => jest.requireActual('../../index.ts') | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
() => {
test('full project', async () => {
const basedir = path.join(__dirname, 'fixtures', 'hoist');
const outputPath = findCacheDir({
name: `test-nohoist`,
cwd: __dirname,
});
// eslint-disable-next-line import/no-extraneous-dependencies, global-require
const { getWebpackConfig } = ... | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
async () => {
const basedir = path.join(__dirname, 'fixtures', 'hoist');
const outputPath = findCacheDir({
name: `test-nohoist`,
cwd: __dirname,
});
// eslint-disable-next-line import/no-extraneous-dependencies, global-require
const { getWebpackConfig } = require('@goji/cli/dist/cjs/con... | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
(resolve, reject) => {
compiler.run((err, stats) => {
if (err) {
reject(err);
return;
}
if (stats?.hasErrors()) {
reject(new Error(stats.compilation.errors[0].toString()));
return;
}
resolve(stats);
});
} | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
(err, stats) => {
if (err) {
reject(err);
return;
}
if (stats?.hasErrors()) {
reject(new Error(stats.compilation.errors[0].toString()));
return;
}
resolve(stats);
} | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
resolve => {
compiler.close(() => resolve(undefined));
} | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
() => resolve(undefined) | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
(content: string) =>
new Promise<Array<string>>((resolve, reject) => {
execFile(rgPath, ['-l', content, '.'], { cwd: outputPath }, (err, stdout) => {
if (err) {
reject(err);
}
resolve(
stdout
.trim()
.split('\n')
... | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
(resolve, reject) => {
execFile(rgPath, ['-l', content, '.'], { cwd: outputPath }, (err, stdout) => {
if (err) {
reject(err);
}
resolve(
stdout
.trim()
.split('\n')
.filter(_ => _.endsWith('.js'))
.sor... | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
(err, stdout) => {
if (err) {
reject(err);
}
resolve(
stdout
.trim()
.split('\n')
.filter(_ => _.endsWith('.js'))
.sort()
// remove leading `./` or `.\\`
.map(_ => path.join(_)),
... | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
_ => _.endsWith('.js') | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
_ => path.join(_) | airbnb/goji-js | packages/webpack-plugin/src/plugins/__tests__/hoist.test.ts | TypeScript |
ArrowFunction |
(
nodes: any[] | null,
identifyParentIsTreeNode: () => boolean
): void => {
const { level, informParentOfChildNodes } = useContext(TreeNodeBranchContext);
useEffect(() => {
if (level > 0 && identifyParentIsTreeNode()) {
informParentOfChildNodes(nodes?.length);
}
}, [node... | 2gplus/widgets-resources | packages/pluggableWidgets/tree-node-web/src/components/TreeNodeBranchContext.ts | TypeScript |
ArrowFunction |
() => {
if (level > 0 && identifyParentIsTreeNode()) {
informParentOfChildNodes(nodes?.length);
}
} | 2gplus/widgets-resources | packages/pluggableWidgets/tree-node-web/src/components/TreeNodeBranchContext.ts | TypeScript |
InterfaceDeclaration |
export interface TreeNodeBranchContextProps {
level: number;
informParentOfChildNodes: (numberOfNodes: number | undefined) => void;
} | 2gplus/widgets-resources | packages/pluggableWidgets/tree-node-web/src/components/TreeNodeBranchContext.ts | TypeScript |
FunctionDeclaration |
export function SortDescendingOutlined(props: Omit<DIconProps, 'dIcon'>) {
return <DIcon {...props} dIcon={AntIcon} />;
} | DevCloudFE/react-devui | packages/ui/src/icons/dist/SortDescendingOutlined.tsx | TypeScript |
ArrowFunction |
(event: KeyboardEvent) => {
const { onSelect, selectedIndex, values } = this.props;
const indicators = Array.from(this.tablist.children);
// bail if the target isn't an indicator
if (!indicators.includes(event.target as HTMLElement)) return;
// bail if not valid arrow key
const isLeft = event... | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
ArrowFunction |
(val, index) => {
const selected = selectedIndex === index;
const common = {
appearance: appearance!,
key: index,
selected,
size: size!,
gutter: gutter!,
};
const tabId = `${ariaLabel}${index}`;
const panelId ... | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
ClassDeclaration |
class ProgressDots extends Component<Props, {}> {
tablist: { children: HTMLElement[] } = { children: [] };
static defaultProps = {
appearance: 'default',
ariaControls: 'panel',
ariaLabel: 'tab',
size: 'default',
spacing: 'comfortable',
};
componentDidMount() {
if (this.props.onSelect)... | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
InterfaceDeclaration |
interface Props extends WithAnalyticsEventsProps {
/** The color of the indicators */
appearance?: DotsAppearance;
/** The aria-controls text applied to each indicator, appended by the index */
ariaControls?: string;
/** The aria-label text applied to each indicator, appended by the index */
ariaLabel?: st... | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
TypeAliasDeclaration |
export type DotsAppearance = 'default' | 'help' | 'inverted' | 'primary'; | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
TypeAliasDeclaration |
export type Spacing = 'comfortable' | 'cozy' | 'compact'; | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
TypeAliasDeclaration |
export type Size = 'small' | 'default' | 'large'; | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
MethodDeclaration |
componentDidMount() {
if (this.props.onSelect) {
document.addEventListener('keydown', this.handleKeyDown, false);
}
} | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
MethodDeclaration |
componentWillUnmount() {
if (this.props.onSelect) {
document.removeEventListener('keydown', this.handleKeyDown);
}
} | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
MethodDeclaration |
render() {
// NOTE: `spacing` is a reserved HTML attribute and will be added to the
// element, replaced with `gutter`.
const {
appearance,
ariaControls,
ariaLabel,
onSelect,
selectedIndex,
size,
spacing: gutter,
values,
} = this.props;
return (
... | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
MethodDeclaration |
onSelect({ event, index }) | HereSinceres/atlaskit-mk-2 | packages/core/progress-indicator/src/components/Dots.tsx | TypeScript |
ArrowFunction |
(props) => {
const history = useHistory()
const searchMode = useSelector((state: Store) => state.SearchMode)
const dispatch = useDispatch()
let authorsDom
if (props.authors) {
const { authors } = props
if (Array.isArray(authors)) {
authorsDom = authors.map((value, index, array)=> {
if(index ... | oirase/bookshelf | resources/js/bookShelf_auth/common/components/Book.tsx | TypeScript |
ArrowFunction |
(state: Store) => state.SearchMode | oirase/bookshelf | resources/js/bookShelf_auth/common/components/Book.tsx | TypeScript |
ArrowFunction |
(value, index, array)=> {
if(index === array.length - 1) {
return <a href="" key={index} onClick={(e) | oirase/bookshelf | resources/js/bookShelf_auth/common/components/Book.tsx | TypeScript |
ArrowFunction |
(e: React.MouseEvent<HTMLAnchorElement>, authors: string) => {
e.preventDefault()
searchMode || dispatch(changeSearchMode(true))
dispatch(setSearchWord(authors))
dispatch(setSearchSelectPage(1))
window.scroll(0, 150)
} | oirase/bookshelf | resources/js/bookShelf_auth/common/components/Book.tsx | TypeScript |
ClassDeclaration |
@Module({
imports: [ArticleModule],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {} | dinornul/demonestjs | src/app.module.ts | TypeScript |
ClassDeclaration |
export class Util {
private constructor() {}
static removeEle(ele, arr: any[]) {
let index = arr.indexOf(ele);
if (index > -1) {
arr.splice(index, 1);
} else {
throw ele + " not found in arr " + arr;
}
}
} | LuccaHellriegel/cgaa | src/engine/Util.ts | TypeScript |
MethodDeclaration |
static removeEle(ele, arr: any[]) {
let index = arr.indexOf(ele);
if (index > -1) {
arr.splice(index, 1);
} else {
throw ele + " not found in arr " + arr;
}
} | LuccaHellriegel/cgaa | src/engine/Util.ts | TypeScript |
FunctionDeclaration |
async function dummyFunction(): Promise<void> { } | parascan-xyz/moonbeam-subql | src/handlers/log.ts | TypeScript |
FunctionDeclaration |
export async function ensureLog(event: MoonbeamEvent): Promise<Log> {
const transaction = await ensureTransaction(event.transactionHash,
event.blockNumber.toString())
const transactionIndex = event.transactionIndex
const logIndex = event.logIndex
const recordId = `${transaction.id}-${logIndex}`
let entit... | parascan-xyz/moonbeam-subql | src/handlers/log.ts | TypeScript |
FunctionDeclaration |
export async function createLog(event: MoonbeamEvent): Promise<void> {
const entity = await ensureLog(event)
const block = await ensureBlock(event.blockNumber.toString())
const address = await ensureAccount(event.address)
entity.blockNumber = block.number
entity.timestamp = event.blockTimestamp
//null addr... | parascan-xyz/moonbeam-subql | src/handlers/log.ts | TypeScript |
ArrowFunction |
async (pendingInvitation) => {
const planningRef = pendingInvitation.data().planning
const invitationSenderId = pendingInvitation.data().user_id
const invitationSender = await authServices.getUser(invitationSenderId)
// if invitation sender doesn't exists...
// TODO c... | gbrunois/plan-your-meals | packages/functions/src/services/invitation-service.ts | TypeScript |
ArrowFunction |
(x) => x.ref | gbrunois/plan-your-meals | packages/functions/src/services/invitation-service.ts | TypeScript |
MethodDeclaration | /**
* Send invatation email
* @param sender User who send invitation
* @param receiver Email to send invitation
* @param inviteToRegister [Optional] Add invation link in the email
*/
async sendInvitation(sender: UserRecord, receiver: string, inviteToRegister: boolean = false) {
const view = {
s... | gbrunois/plan-your-meals | packages/functions/src/services/invitation-service.ts | TypeScript |
MethodDeclaration | /**
* Store a pending invitation in firestore
* @param userId User id who send invitation
* @param guestEmail Invited user email
* @param planningRef Planning to share with the invited user
*/
async savePendingInvitation(userId: string, guestEmail: string, planningRef: DocumentReference<IPlanning>) {
... | gbrunois/plan-your-meals | packages/functions/src/services/invitation-service.ts | TypeScript |
MethodDeclaration |
async findPendingInvitations(guestEmail: string) {
console.log('findPendingInvitations', { guestEmail })
return firestoreServices.findPendingInvitations(guestEmail)
} | gbrunois/plan-your-meals | packages/functions/src/services/invitation-service.ts | TypeScript |
MethodDeclaration | /**
* Find pending invitation from the user email and convert it to shared planning
* @param user New created user
*/
async acceptPendingInvationIfExists(user) {
const pendingInvitations = await invitationServices.findPendingInvitations(user.email)
if (!pendingInvitations.empty) {
await Promise.a... | gbrunois/plan-your-meals | packages/functions/src/services/invitation-service.ts | TypeScript |
ArrowFunction |
(props) => (
<G>
<Path d="M21.7923 11.8009C22.4856 12.3791 22.5266 13.4721 21.895 14.1049L20.2357 15.7642C19.97 16.0352 19.6149 16.2006 19.2367 16.2294C18.1615 16.3114 16.1037 14.9979 15.5768 14.1847C15.1654 13.5497 15.3268 12.6563 15.3275 11.9399C14.5632 11.7305 13.7839 11.5951 13 11.5337" | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
ArrowFunction |
(props) => (
<G>
<Path fillRule="evenodd" | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
ArrowFunction |
(props) => (
<G>
<Path opacity="0.15" | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
ArrowFunction |
(props) => (
<G>
<Path d="M2.10863 14.1079L3.76461 15.7639C4.02858 16.0413 4.38552 16.2119 4.76752 16.2431C5.84479 16.3311 7.91395 15.0073 8.44327 14.1917C8.8559 13.5559 8.69631 12.6629 8.69702 11.9465C10.8675 11.3476 13.1582 11.3453 15.3275 11.9399C15.3268 12.6563 15.1654 13.5497 15.5768 14.1847C16.1037... | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
ArrowFunction |
(props) => {
switch (props.variant) {
case 'broken':
return <Broken {...props} />;
case 'curved':
return <Curved {...props} />;
case 'duotone':
return <Duotone {...props} />;
case 'outline':
return <Outline {...props} />;
... | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
TypeAliasDeclaration |
type BrokenProps = { color: Color, strokeWidth: number, }; | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
TypeAliasDeclaration |
type CurvedProps = { color: Color, strokeWidth: number, }; | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
TypeAliasDeclaration |
type DuotoneProps = { color: Color, strokeWidth: number, }; | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
TypeAliasDeclaration |
type OutlineProps = { color: Color, strokeWidth: number, }; | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
TypeAliasDeclaration |
type PhoneDownProps =
{ variant: 'broken' } & BrokenProps |
{ variant: 'curved' } & CurvedProps |
{ variant: 'duotone' } & DuotoneProps |
{ variant: 'outline' } & OutlineProps; | cabralRodrigo/react-native-swm-icon-pack | src/icons/PhoneDown.tsx | TypeScript |
FunctionDeclaration |
async function promptForRolloutPercentAsync({
promptMessage,
}: {
promptMessage: string;
}): Promise<number> {
const { name: rolloutPercent } = await promptAsync({
type: 'text',
name: 'name',
format: value => {
return parseInt(value, 10);
},
message: promptMessage,
initial: 0,
v... | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
FunctionDeclaration |
function getRolloutInfo(getUpdateChannelByNameForAppResult: GetChannelByNameForAppQuery): {
newBranch: Pick<UpdateBranch, 'name' | 'id'>;
oldBranch: Pick<UpdateBranch, 'name' | 'id'>;
currentPercent: number;
} {
const { branchMapping } = getBranchMapping(
getUpdateChannelByNameForAppResult.app?.byId.update... | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
FunctionDeclaration |
async function startRolloutAsync({
channelName,
branchName,
percent,
jsonFlag,
projectId,
fullName,
currentBranchMapping,
getUpdateChannelByNameForAppResult,
}: {
channelName?: string;
branchName?: string;
percent?: number;
jsonFlag: boolean;
projectId: string;
fullName: string;
currentBr... | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
FunctionDeclaration |
async function editRolloutAsync({
channelName,
percent,
jsonFlag,
currentBranchMapping,
getUpdateChannelByNameForAppResult,
}: {
channelName?: string;
percent?: number;
jsonFlag: boolean;
currentBranchMapping: BranchMapping;
getUpdateChannelByNameForAppResult: GetChannelByNameForAppQuery;
}): Promi... | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
FunctionDeclaration |
async function endRolloutAsync({
channelName,
branchName,
jsonFlag,
projectId,
getUpdateChannelByNameForAppResult,
}: {
channelName?: string;
branchName?: string;
jsonFlag: boolean;
projectId: string;
getUpdateChannelByNameForAppResult: GetChannelByNameForAppQuery;
}): Promise<{
newChannelInfo: {... | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
ArrowFunction |
value => {
return parseInt(value, 10);
} | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
ArrowFunction |
(rolloutPercent: string): true | string => {
const floatValue = parseFloat(rolloutPercent);
return Number.isInteger(floatValue) && floatValue >= 0 && floatValue <= 100
? true
: 'The rollout percentage must be an integer between 0 and 100 inclusive.';
} | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
ArrowFunction |
d => d.branchId | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
ArrowFunction |
branch => branch.id === newBranchId | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
ArrowFunction |
branch => branch.id === oldBranchId | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
ArrowFunction |
value => (value ? true : validationMessage) | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
ClassDeclaration |
export default class ChannelRollout extends EasCommand {
static hidden = true;
static description = 'Rollout a new branch out to a channel incrementally.';
static args = [
{
name: 'channel',
required: true,
description: 'rollout that the channel is on',
},
];
static flags = {
... | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
MethodDeclaration |
async runAsync(): Promise<void> {
const {
args: { channel: channelName },
flags: { json: jsonFlag, end: endFlag },
} = this.parse(ChannelRollout);
const {
flags: { branch: branchName, percent },
} = this.parse(ChannelRollout);
const projectDir = await findProjectRootAsync(process... | kgc00/eas-cli | packages/eas-cli/src/commands/channel/rollout.ts | TypeScript |
TypeAliasDeclaration |
export declare type LabelPosition = 'top' | 'side'; | esthercheran/components | dist/types/components/sux-picker/interfaces.d.ts | TypeScript |
ClassDeclaration | /**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/networkfirewall_resource_policy.html aws_networkfirewall_resource_policy}
*/
export class NetworkfirewallResourcePolicy extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly... | terraform-cdk-providers/cdktf-provider-aws | src/networkfirewall/networkfirewall-resource-policy.ts | TypeScript |
InterfaceDeclaration | /**
* AWS Network Firewall
*/
export interface NetworkfirewallResourcePolicyConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/networkfirewall_resource_policy.html#policy NetworkfirewallResourcePolicy#policy}
*/
readonly policy: s... | terraform-cdk-providers/cdktf-provider-aws | src/networkfirewall/networkfirewall-resource-policy.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.