mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	docs: [ci] generate new docs
This commit is contained in:
		
							parent
							
								
									2337f9ab60
								
							
						
					
					
						commit
						3dcd99563a
					
				@ -2,5 +2,9 @@ catch(name, cb) > Catches a hook with `name`. Runs the `cb` when it is thrown
 | 
			
		||||
 | 
			
		||||
catchOnce(name, cb) > Same as catch, but only runs the `cb` once and then removes the hook
 | 
			
		||||
 | 
			
		||||
release(name, catcher) > Removes the `catcher` for the event with `name`
 | 
			
		||||
For this to work, `catcher` has to be the same function used to catch
 | 
			
		||||
an event, like one saved to a variable.
 | 
			
		||||
 | 
			
		||||
throw(name, ...args) > Throws a hook with `name` with the provided `args`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -12,6 +12,11 @@ function bait.catch(name, cb) end
 | 
			
		||||
--- @param cb function
 | 
			
		||||
function bait.catchOnce(name, cb) end
 | 
			
		||||
 | 
			
		||||
--- Removes the `catcher` for the event with `name`
 | 
			
		||||
--- For this to work, `catcher` has to be the same function used to catch
 | 
			
		||||
--- an event, like one saved to a variable.
 | 
			
		||||
function bait.release() end
 | 
			
		||||
 | 
			
		||||
--- Throws a hook with `name` with the provided `args`
 | 
			
		||||
--- @param name string
 | 
			
		||||
--- @vararg any
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user