type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
private parseQueryResult(result: any, criteria: ICriteriaParts): Promise<any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Executes the select and returns the Promise.
*/
promise(rawCriteria: any, callback?: (_results: T[]) => any): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Exactly the same thing as promise().
* Executes the select and returns the Promise.
*/
execute(rawCriteria: any, callback?: (_results: T[]) => any): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
execute(criteriaRawJsObject: any, callback?: (_result: T | any) => any): Promise<T | any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
execute(criteriaOrID: any | number | string, callback?: (_result: DeleteAnswer) => any): Promise<DeleteAnswer>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /** Make the obj observable. Used in constructor or extend this class and use it. */
private makeObservable(obj: any): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**Add a listener/observer to watch for changes in this object's properties */
onPropertyChanged(listener: PropertyChangedCallback): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /** If developer wants manualy notify for property changed */
notifyPropertyChanged(propertyName: string, oldValue: any): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**Remove property changed listeners */
_forget(): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
toJSON(...excludeProperties: string[]): any; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
indexOf(item: T | string | number): number; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findItem(itemId: string | number): T; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
getItem(index: number): T; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
getItemObservable(index: number): T & ObservableObject; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
addItem(...items: (T | (T & ObservableObject))[]): (T | (T & ObservableObject)); | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
removeItem(...items: (T | (T & ObservableObject))[]): BaseCollection<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
removeItemById(id: number | string): BaseCollection<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
forgetItem(...items: (T | (T & ObservableObject))[]): BaseCollection<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
reset(): BaseCollection<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
notifyCollectionChanged(evtArgs: CollectionChangedEventArgs<T>): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
onCollectionChanged(callback: (eventArgs: CollectionChangedEventArgs<T>) => void): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
startListeningToDatabase(): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
find(criteriaRawJsObject?: any, callback?: (_results: T[]) => any): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findOne(criteriaRawJsObject: any, callback?: (_result: T) => any): Promise<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findById(id: number | string, callback?: (result: T) => any): Promise<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findAll(tableRules?: RawRules, callback?: (_results: T[]) => any): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* .insert() and .update() do the same thing: .save();
*/
insert(criteriaRawJsObject: any, callback?: (_result: any) => any): Promise<T | any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
update(criteriaRawJsObject: any, callback?: (_result: any) => any): Promise<T | any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
save(criteriaRawJsObject: any, callback?: (_result: any) => any): Promise<T | any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
remove(criteriaOrID: any | number | string, callback?: (_result: DeleteAnswer) => any): Promise<DeleteAnswer>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* same thing as .remove();
*/
delete(criteriaOrID: any | number | string, callback?: (_result: DeleteAnswer) => any): Promise<DeleteAnswer>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
fill(criteriaRawJsObject: any): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
fillAll(): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
fillOne(criteriaRawJsObject: any): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | //ONLY MONGO/METEOR COLLECTION METHODS START
allow(options: {
insert?: (userId: string, doc: T) => boolean;
update?: (userId: string, doc: T, fieldNames: string[], modifier: any) => boolean;
remove?: (userId: string, doc: T) => boolean;
fetch?: string[];
trans... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
deny(options: {
insert?: (userId: string, doc: T) => boolean;
update?: (userId: string, doc: T, fieldNames: string[], modifier: any) => boolean;
remove?: (userId: string, doc: T) => boolean;
fetch?: string[];
transform?: Function;
}): boolean; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
find(selector?: any, options?: {
sort?: any;
skip?: number;
limit?: number;
fields?: any;
reactive?: boolean;
transform?: Function;
}): Mongo.Cursor<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findOne(selector?: any, options?: {
sort?: any;
skip?: number;
fields?: any;
reactive?: boolean;
transform?: Function;
}): T; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Creates the MysqlConnection from the connection url or the real connection object.
* @param {string | Mysql.IConnection | Mysql.IConnectionConfig} connection the connection url or the real connection object.
* @returnType {nothing}
* @return {nothing}
*/
create(connec... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Attach a real connection.
* @param {Mysql.IConnection} connection the real connection object.
* @returnType {nothing}
* @return {nothing}
*/
attach(connection: Mysql.IConnection): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Close the entire real connection and remove all event's listeners (if exist).
* @param {function} callback If error occurs when closing the connection, this callback has the responsibility to catch it.
* @returnType {nothing}
* @return {nothing}
*/
end(callback?: (erro... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Close the entire real connection and remove all event's listeners (if exist).
* the difference from the 'end' is that this method doesn't care about errors so no callback passing here.
*/
destroy(): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Clear all binary logs from the whole database.
* When finish returns a promise, use it with .then(function(){});
* @return Promise
*/
clearBinaryLogs(): Promise<void>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Link the real connection with this MysqlConnection object.
* @param {function} readyCallback when the link operation is done this callback is executed.
* @returnType {Promise}
* @return {Promise}
*/
link(readyCallback?: () => void): Promise<void>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Force to use/fetch information from only certain of database's tables, otherwise all database's tables information will be fetched.
* @param {Array} tables the array of the tables {string}
* @returnType {nothing}
* @return {nothing}
*/
useOnly(...tables: any[]): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* This method has the resposibility of fetching the correct tables from the database ( table = columns' names, primary key name).
* @returnType {Promise}
* @return {Promise}
*/
fetchDatabaseInformation(): Promise<void>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Escape the query column's value and return it.
* @param {string} val the value which will be escaped.
* @returnType {string}
* @return {string}
*/
escape(val: string): string; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Call when must notify the Database events, SAVE(INSERT,UPDATE), REMOVE(DELETE).
* @param {string} tableWhichCalled the table name which event is coming from.
* @param {string} queryStr the full parsed query string which used to determinate the type of event to notify.
* @param ... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Adds an event listener/watcher on a table for a 'database event'.
* @param {string} tableName the table name which you want to add the event listener.
* @param {string or string[]} evtType the event(s) type you want to watch, one of these(string) or an array of them(string[]): ["INSERT"... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Removes an event listener/watcher from a table for a specific event type.
* @param {string} tableName the table name which you want to remove the event listener.
* @param {string} evtType the Event type you want to remove, one of these: "INSERT", "UPDATE", "REMOVE", "SAVE".
* @... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Executes a database query.
* @param {string} queryStr the query text/string to be executed.
* @param {function} callback the function will be called and fill the one and only parameter when an errors occurs.
* @param {any[]} queryArguments (optional) the query arguments you wan... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Returns a MysqlTable object from the database factory. (Note: this method doesn't create anything, just finds and returns the correct table, you don't have to create anything at all. Tables are fetched by the library itself.)
* If you are using typescript you can pass a class (generic<T>) in ord... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Adds or turn on an event listener/watcher on a table for a 'database event'.
* @param {string} evtType the event type you want to watch, one of these: ["INSERT", "UPDATE", "REMOVE", "SAVE"].
* @param {function} callback Callback which has one parameter(typeof any[]) which filled by the raw... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Removes or turn off an event listener/watcher from a table for a specific event type.
* @param {string} evtType the Event type you want to remove, one of these: "INSERT", "UPDATE", "REMOVE", "SAVE".
* @param {function} callbackToRemove the callback that you were used for watch this even... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Use it when you want to check if extended function is exists here.
* @param {string} extendedFunctionName the name of the function you want to check.
* @returnType {boolean}
* @return {boolean}
*/
has(extendedFunctionName: string): boolean; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Extends this table's capabilities with a function.
* @param {string} functionName the function name you want to use, this is used when you want to call this function later.
* @param {function} theFunction the function with any optional parameters you want to pass along.
* @retu... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Converts and returns an object from this form: { a_property:'dsda', other_property:something, any_property_name:true } to { aProperty:..., otherProperty...,anyPropertyName...}
* @param {any} row the raw row object.
* @returnType {any}
* @return {any}
*/
objectFromRow(r... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Converts and returns an object from this form: { aProperty:'dsda', otherProperty:something, anyPropertyName:true } to { a_property:..., other_property...,any_property_name...}
* @param {any} row the raw row object.
* @returnType {any}
* @return {any}
*/
rowFromObject(o... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Returns and array of [columns[],values[]]
* @param {any} jsObject the raw row object.
* @returnType {array}
* @return {array}
*/
getRowAsArray(jsObject: any): Array<any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Returns the primary key's value from an object.
* @param {any} jsObject the object which you want to find and return the value of the primary key.
* @returnType {number | string}
* @return {number | string}
*/
getPrimaryKeyValue(jsObject: any): number | string; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
*
*/
find(criteriaRawJsObject: any): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
find(criteriaRawJsObject: any, callback: ((_results: T[]) => any)): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
find(criteriaRawJsObject: any, callback?: (_results: T[]) => any): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findSingle(criteriaRawJsObject: any, callback?: (_result: T) => any): Promise<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findById(id: number | string): Promise<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findAll(): Promise<T[]>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
findAll(tableRules: RawRules): Promise<T[]> | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
save(criteriaRawJsObject: any): Promise<any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
save(criteriaRawJsObject: any, callback?: (_result: any) => any): Promise<any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
remove(id: number | string): Promise<DeleteAnswer>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
remove(criteriaRawObject: any): Promise<DeleteAnswer>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
insert(doc: T, callback?: (_result: T) => void): T; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
remove(selector: any, callback?: () => DeleteAnswer): DeleteAnswer; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
update(selector: any, modifier: any, options?: {
multi?: boolean;
upsert?: boolean;
}, callback?: (result: T) => any): number; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
collection(nameOfCollection?: string, fillWithCriteria?: any): Mongo.Collection<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
static when(..._promises: Promise<any>[]): Promise<any>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
setConnection(connection: Connection): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Force to use/fetch information from only certain of database's tables, otherwise all database's tables information will be fetched.
* @param {Array} tables the array of the tables {string}
* @returnType {nothing}
* @return {nothing}
*/
useOnly(...useTables: any[]): vo... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
has(tableName: string, functionName?: string): boolean; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
ready(callback?: () => void): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
table<T>(tableName: string): Table<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
noticeReady(): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
removeReadyListener(callback: () => void): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
query(queryStr: string, callback: (err: Mysql.IError, results: any) => any, queryArguments?: any[]): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Close the entire real connection and remove all event's listeners (if exist).
* the difference from the 'end' is that this method doesn't care about errors so no callback passing here.
*/
destroy(): void; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**
* Close the entire real connection and remove all event's listeners (if exist).
* @param {function} maybeAcallbackError If error occurs when closing the connection, this callback has the responsibility to catch it.
* @returnType {nothing}
* @return {nothing}
*/
end(maybeAcallbackE... | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
newTableRules(tableName: string): SelectQueryRules; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
buildRules(): SelectQueryRules; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
buildRules(parentRules?: SelectQueryRules): SelectQueryRules; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration |
collection<T>(tableName: string, callbackWhenReady?: Function): ObservableCollection<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
MethodDeclaration | /**Meteor js feature only: Returns a table which it's collection can make synchronization with the client */
meteorTable<T>(tableName: string): MeteorTable<T>; | HydTechie/DefinitelyTyped | node-mysql-wrapper/node-mysql-wrapper.d.ts | TypeScript |
ArrowFunction |
(acc, node) => {
if ((node as Element).tagName === 'SLOT') {
acc.push(...(node as HTMLSlotElement).assignedNodes());
} else {
acc.push(node);
}
return acc;
} | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/image/image.ts | TypeScript |
ArrowFunction |
node => node.nodeType === Node.ELEMENT_NODE && (node as Element).matches(selectorItem) | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/image/image.ts | TypeScript |
ArrowFunction |
image => html`<source media="${image.getAttribute('media')}" srcset="${image.getAttribute('srcset')}"></source>` | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/image/image.ts | TypeScript |
ClassDeclaration | /**
* Image.
*
* @element dds-image
* @slot long-description - The long description content.
* @slot icon - The icon content.
*/
@customElement(`${ddsPrefix}-image`)
class DDSImage extends StableSelectorMixin(LitElement) {
/**
* The image data, harvested from `<dds-image-item>`.
*/
@internalProperty()
... | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/image/image.ts | TypeScript |
MethodDeclaration | /**
* Handles `slotchange` event.
*/
private _handleSlotChange({ target }: Event) {
const { selectorItem } = this.constructor as typeof DDSImage;
this._images = (target as HTMLSlotElement)
.assignedNodes()
// Supports `<dds-image><slot></slot></dds-image>` rendered in shadow DOM
.reduce(... | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/image/image.ts | TypeScript |
MethodDeclaration |
render() {
const { alt, border, defaultSrc, _images: images, _handleSlotChange: handleSlotChange } = this;
const imgClasses = classMap({
[`${prefix}--image__img`]: true,
[`${prefix}--image__img--border`]: border,
});
return html`
<slot @slotchange="${handleSlotChange}"></slot>
... | Embodimentgeniuslm3/carbon-for-ibm-dotcom | packages/web-components/src/components/image/image.ts | TypeScript |
ClassDeclaration |
class AuthController {
async getUrl (request:Request, response:Response) {
response.redirect(
getAuthUrl(request.query.redirect as string)
)
}
async logIn (request:Request, response:Response) {
const code = request.query.code as string
const redirectUrl = request.query.redirectUrl as strin... | gsbenevides2/agenda | backend/src/controllers/auth.ts | TypeScript |
MethodDeclaration |
async getUrl (request:Request, response:Response) {
response.redirect(
getAuthUrl(request.query.redirect as string)
)
} | gsbenevides2/agenda | backend/src/controllers/auth.ts | TypeScript |
MethodDeclaration |
async logIn (request:Request, response:Response) {
const code = request.query.code as string
const redirectUrl = request.query.redirectUrl as string
try {
const googleData = await retriveCodeInformation(code, redirectUrl)
let [user] = await db('Users')
.select('*')
.where({
... | gsbenevides2/agenda | backend/src/controllers/auth.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.