refactor: check spelling (#2200)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
@@ -383,7 +383,7 @@ function getQueries(
|
||||
* Joins dangling params to origin
|
||||
* @param origin origin value from the URL Object
|
||||
* @param params params without values
|
||||
* @returns origin string concatenated with dngling paramas
|
||||
* @returns origin string concatenated with dangling paramas
|
||||
*/
|
||||
function concatParams(urlObject: URL | undefined, params: string[]) {
|
||||
return pipe(
|
||||
|
||||
@@ -3,12 +3,12 @@ import { HoppRESTRequest, HoppCollection } from "@hoppscotch/data"
|
||||
|
||||
export type HoppExporter<T> = (content: T) => TE.TaskEither<string, string>
|
||||
|
||||
export type HoppExporterDefintion<T> = {
|
||||
export type HoppExporterDefinition<T> = {
|
||||
name: string
|
||||
exporter: () => Promise<HoppExporter<T>>
|
||||
}
|
||||
|
||||
export const RESTCollectionExporters: HoppExporterDefintion<
|
||||
export const RESTCollectionExporters: HoppExporterDefinition<
|
||||
HoppCollection<HoppRESTRequest>
|
||||
>[] = [
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ type HoppImporter<T, StepsType, Errors> = (
|
||||
/**
|
||||
* Definition for importers
|
||||
*/
|
||||
type HoppImporterDefintion<T, Y, E> = {
|
||||
type HoppImporterDefinition<T, Y, E> = {
|
||||
/**
|
||||
* Name of the importer, shown on the Select Importer dropdown
|
||||
*/
|
||||
@@ -53,7 +53,7 @@ export const defineImporter = <ReturnType, StepType, Errors>(input: {
|
||||
applicableTo?: Array<"team-collections" | "my-collections">
|
||||
steps: StepType
|
||||
}) => {
|
||||
return <HoppImporterDefintion<ReturnType, StepType, Errors>>{
|
||||
return <HoppImporterDefinition<ReturnType, StepType, Errors>>{
|
||||
...input,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,19 +37,19 @@ export function useArrowKeysNavigation(searchItems: any, options: any = {}) {
|
||||
handleArrowKeysNavigation(event, selectedEntry, preventPropagation)
|
||||
}
|
||||
|
||||
function bindArrowKeysListerners() {
|
||||
function bindArrowKeysListeners() {
|
||||
window.addEventListener("keydown", onKeyUp, { capture: preventPropagation })
|
||||
}
|
||||
|
||||
function unbindArrowKeysListerners() {
|
||||
function unbindArrowKeysListeners() {
|
||||
window.removeEventListener("keydown", onKeyUp, {
|
||||
capture: preventPropagation,
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
bindArrowKeysListerners,
|
||||
unbindArrowKeysListerners,
|
||||
bindArrowKeysListeners,
|
||||
unbindArrowKeysListeners,
|
||||
selectedEntry,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ const TEAMS_BACKEND_PAGE_SIZE = 10
|
||||
* @param {string} collID - ID of the collection to find the parent of
|
||||
* @param {TeamCollection} currentParent - (used for recursion, do not set) The parent in the current iteration (undefined if root)
|
||||
*
|
||||
* @returns REFERENCE to the collecton or null if not found or the collection is in root
|
||||
* @returns REFERENCE to the collection or null if not found or the collection is in root
|
||||
*/
|
||||
function findParentOfColl(
|
||||
tree: TeamCollection[],
|
||||
|
||||
@@ -314,7 +314,7 @@ function makeVisitors(server, query, file, messages) {
|
||||
}
|
||||
}
|
||||
|
||||
function validateAssignement(nodeLeft, nodeRight, rule, state) {
|
||||
function validateAssignment(nodeLeft, nodeRight, rule, state) {
|
||||
if (!nodeLeft || !nodeRight) return
|
||||
if (!rule) return
|
||||
var leftType = infer.expressionType({ node: nodeLeft, state: state }),
|
||||
@@ -387,7 +387,7 @@ function makeVisitors(server, query, file, messages) {
|
||||
)
|
||||
// type mismatch?
|
||||
if (mismatchRule)
|
||||
validateAssignement(varNode, decl.init, mismatchRule, state)
|
||||
validateAssignment(varNode, decl.init, mismatchRule, state)
|
||||
}
|
||||
}
|
||||
break
|
||||
@@ -525,7 +525,7 @@ function makeVisitors(server, query, file, messages) {
|
||||
CallExpression: validateCallExpression,
|
||||
AssignmentExpression: function (node, state, c) {
|
||||
var rule = getRule("TypeMismatch")
|
||||
validateAssignement(node.left, node.right, rule, state)
|
||||
validateAssignment(node.left, node.right, rule, state)
|
||||
},
|
||||
ObjectExpression: function (node, state, c) {
|
||||
// validate properties of the object literal
|
||||
@@ -551,7 +551,7 @@ function makeVisitors(server, query, file, messages) {
|
||||
}
|
||||
},
|
||||
ArrayExpression: function (node, state, c) {
|
||||
// validate elements of the Arrray
|
||||
// validate elements of the Array
|
||||
var rule = getRule("Array")
|
||||
if (!rule) return
|
||||
//var actualType = infer.expressionType({node: node, state: state});
|
||||
|
||||
Reference in New Issue
Block a user