Skip to content

Commit

Permalink
TS and Linting Updates (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentauger authored Aug 9, 2024
1 parent 97c7c88 commit 42a388b
Show file tree
Hide file tree
Showing 184 changed files with 17,318 additions and 14,179 deletions.
24 changes: 12 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "weekly"
target-branch: "main"
- package-ecosystem: "npm"
directory: "/"
interval: weekly
target-branch: main
- package-ecosystem: npm
directory: /
schedule:
interval: "weekly"
target-branch: "main"
- package-ecosystem: "composer"
directory: "/"
interval: weekly
target-branch: main
- package-ecosystem: composer
directory: /
schedule:
interval: "weekly"
target-branch: "main"
interval: weekly
target-branch: main
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
# supported CodeQL languages.
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#specifying-directories-to-scan
#
name: 'CodeQL'
name: CodeQL

on:
pull_request:
branches: ['main']
branches: [main]
paths-ignore:
- '**/*.md'
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '21'
cache: 'pnpm'
cache: pnpm

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enlightn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Enlightn Checks

on:
pull_request:
branches: ['main']
branches: [main]
paths-ignore:
- '**/*.md'

Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
115 changes: 94 additions & 21 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4160,6 +4160,31 @@
{
/** @var \Illuminate\Cache\Repository $instance */
return $instance->macroCall($method, $parameters);
}
/**
* Get a lock instance.
*
* @param string $name
* @param int $seconds
* @param string|null $owner
* @return \Illuminate\Contracts\Cache\Lock
* @static
*/ public static function lock($name, $seconds = 0, $owner = null)
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->lock($name, $seconds, $owner);
}
/**
* Restore a lock instance using the owner identifier.
*
* @param string $name
* @param string $owner
* @return \Illuminate\Contracts\Cache\Lock
* @static
*/ public static function restoreLock($name, $owner)
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->restoreLock($name, $owner);
}
/**
* Remove all items from the cache.
Expand All @@ -4168,43 +4193,91 @@
* @static
*/ public static function flush()
{
/** @var \Illuminate\Cache\ArrayStore $instance */
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->flush();
}
/**
* Get the cache key prefix.
* Remove all expired tag set entries.
*
* @return string
* @return void
* @static
*/ public static function getPrefix()
*/ public static function flushStaleTags()
{
/** @var \Illuminate\Cache\ArrayStore $instance */
return $instance->getPrefix();
/** @var \Illuminate\Cache\RedisStore $instance */
$instance->flushStaleTags();
}
/**
* Get a lock instance.
* Get the Redis connection instance.
*
* @param string $name
* @param int $seconds
* @param string|null $owner
* @return \Illuminate\Contracts\Cache\Lock
* @return \Illuminate\Redis\Connections\Connection
* @static
*/ public static function lock($name, $seconds = 0, $owner = null)
*/ public static function connection()
{
/** @var \Illuminate\Cache\ArrayStore $instance */
return $instance->lock($name, $seconds, $owner);
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->connection();
}
/**
* Restore a lock instance using the owner identifier.
* Get the Redis connection instance that should be used to manage locks.
*
* @param string $name
* @param string $owner
* @return \Illuminate\Contracts\Cache\Lock
* @return \Illuminate\Redis\Connections\Connection
* @static
*/ public static function restoreLock($name, $owner)
*/ public static function lockConnection()
{
/** @var \Illuminate\Cache\ArrayStore $instance */
return $instance->restoreLock($name, $owner);
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->lockConnection();
}
/**
* Specify the name of the connection that should be used to store data.
*
* @param string $connection
* @return void
* @static
*/ public static function setConnection($connection)
{
/** @var \Illuminate\Cache\RedisStore $instance */
$instance->setConnection($connection);
}
/**
* Specify the name of the connection that should be used to manage locks.
*
* @param string $connection
* @return \Illuminate\Cache\RedisStore
* @static
*/ public static function setLockConnection($connection)
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->setLockConnection($connection);
}
/**
* Get the Redis database instance.
*
* @return \Illuminate\Contracts\Redis\Factory
* @static
*/ public static function getRedis()
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->getRedis();
}
/**
* Get the cache key prefix.
*
* @return string
* @static
*/ public static function getPrefix()
{
/** @var \Illuminate\Cache\RedisStore $instance */
return $instance->getPrefix();
}
/**
* Set the cache key prefix.
*
* @param string $prefix
* @return void
* @static
*/ public static function setPrefix($prefix)
{
/** @var \Illuminate\Cache\RedisStore $instance */
$instance->setPrefix($prefix);
}
}
/**
Expand Down
Loading

0 comments on commit 42a388b

Please sign in to comment.